How to add a localstorage for checkbox?
<input type="checkbox" id="test" name="" value="" checked>
$('#test').change(function(){
if($(this).is(":checked")) {
$('.sb').removeClass("dis");
} else {
$('.sb').addClass("dis");
}
});
So I have a checkbox with toggle function. If checkbox is checked it removes .dis class. Could you help me with making a localstorage for this function?
And also, can I make SAVE and RESET buttons? So it works only after saving the options.