layout: post title: iOS 7 Switchery
Used input
as prototype.
Get or set its attributes or properties, will do just fine.
Html file is simple as below, there is no javascript action at all.
All you needed is a piece of html and css.
<input class="switchery" type="checkbox">
<input class="switchery" type="checkbox" checked>
<input class="switchery" type="checkbox" disabled>
<input class="switchery" type="checkbox" checked disabled>
input | switchery |
---|---|
checked | checked |
disabled | disabled |