V
V
vasIvas2015-09-10 22:56:45
JavaScript
vasIvas, 2015-09-10 22:56:45

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

3 answer(s)
0
0xD34F, 2019-04-08
@mrusklon

$('.subcat')
  .prop('disabled', true)
  .val('')
  .find('[value=""]')
  .text('тут ничего нет')

UPD. https://jsfiddle.net/t7ypujeo/

A
Anton, 2019-04-08
@Eridani

https://jsfiddle.net/mwbhfg10/1/

V
Vladislav Orlov, 2015-09-10
@vasIvas

Like this on LESS:

.btn-primary {
  ...
  &:hover, &:focus {
     ...
  }
  &:active, &:active:hover, &:active:focus {
     ...
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question