Input Checkbox checked by default
added "true" parameter below, just try it before, and it works for me
<input type="checkbox" class="onoffswitch-checkbox" id="inline" checked="true">
just write "checked" and it works
<input type="checkbox" class="onoffswitch-checkbox" id="inline" checked>
The attribute checked="checked"
does work and the shorthand notation is just checked
.
<div class="onoffswitch-container">
<span class="onoffswitch-title">Open Inline</span>
<span class="onoffswitch">
<input type="checkbox" class="onoffswitch-checkbox" id="inline" checked="checked"/>
<label class="onoffswitch-label" for="inline">
<span class="onoffswitch-inner" data-swchoff-text="OFF" data-swchon-text="ON"></span>
<span class="onoffswitch-switch"></span>
</label>
</span>
</div>