Switch

Turn a checkbox into a switch

<div class="switch">
    <input id="switch" type="checkbox">
    <label for="switch" data-off="NO" data-on="YES"></label>
</div>

Attributes

data-on

text to show when the switch is on

data-off

text to show when the switch is off