Answer the question
In order to leave comments, you need to log in
How to change button state manually?
I create a navbar using bootstrap3, it has navbar-nav, and it has a ul with text wrapped in li>a
When I click on the "button", it becomes "selected" or "active", I don't know this, but
I want to know how to change its state manually?
Answer the question
In order to leave comments, you need to log in
$('.subcat')
.prop('disabled', true)
.val('')
.find('[value=""]')
.text('тут ничего нет')
Like this on LESS:
.btn-primary {
...
&:hover, &:focus {
...
}
&:active, &:active:hover, &:active:focus {
...
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question