You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
adelante
Структура:
CSS:
#anystar {
background: url('images/anystar.png') no-repeat right 10px;
display: inline-block;
padding: 10px 15px 8px 0 ;
}
#anystar .chkd {
background: url('images/anystar_chkd.png') no-repeat right 10px;
}
js:
jQuery(document).ready(function(){
jQuery('label.styled').click(function(){
jQuery('label.styled.chkd').removeClass('chkd');
jQuery(this).addClass('chkd');
});
});
JS нормально отрабатывается, класс .chkd к элементу добавляется. Но бэкграунд при этом не меняется, хотя, по-моему, должен.
В чём фишка?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.