Topic: Are there button() methods to set state (rather than just toggle)

kikkert pro asked 7 years ago

Just checking out your nice buttons - saw at the bottom of the page just one method listed, to "toggle" the button state. I's like to be able to set or clear the button state from JS, rather than just toggle it. Do I have to write code to poll the button state and then decide whether or not to toggle it, or is there an easier way, like a method that is not listed there? Hope so... Thanks!

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No