-
Notifications
You must be signed in to change notification settings - Fork 1
Switch
Иван Калъчев edited this page Jan 15, 2023
·
4 revisions
The switch is a HTML component, that presents a boolean (true/false) value.
<span class="switch">
<label>A</label>
<input type="checkbox" class="switch" id="switch-id" checked>
<label for="switch-id">B</label>
</span>
switch
disabled
switch
switch-sm
switch-lg
You can get the value of certain switch with JQuery, as it follows below.
$("#switch-id")[0].checked