Topic: How to determine switch state in javascript?
Given the example switch:
<div class="switch">
<label>
Off
<input type="checkbox">
<span class="lever"></span>
On
</label>
</div>
How can the state of the switch (on/off) be determined via javascript? I would like to use this state to dictate behavior of other javascript functions on the page.
david1 pro answered 7 years ago
fjch1997 pro answered 7 years ago
Bartłomiej Malanowski staff pro premium commented 7 years ago
Currently, we don't support KnockoutFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No