http://arthurgouveia.com/prettyCheckable/
<input type=“checkbox” class=“myClass” value=“yes” id=“answer” name=“answer”/>
I would like to know which code below I should put?
Setup prettyCheckable for your inputs and you're all set:
for (var i = inputList.length - 1; i >= 0; i--) {
$(inputList[i]).prettyCheckable();
}
You can start the plugin with the options you see on the documentation bellow and they will be applied to all matching inputs:
$().ready(function(){
$('input.myClass').prettyCheckable({
color: 'red'
});
});
If you want to apply something to all the inputs but you need a few specific ones to be different, you can add the specifics inline:
<input type="checkbox" class="myClass" value="yes" id="answer" name="answer" data-color="green" />