jeudi 30 avril 2015

Remove "check" after submit

I've a "stupid" problem: when I click a specific button, I want to reset the checkbox checked in unchecked.

HTML

<input type="checkbox">1
<input type="checkbox">2
<button id="clear">Clear</button>

JS

jQuery("#resetta").click(function(){
jQuery('input:checked').removeAttr('checked');
});




Aucun commentaire:

Enregistrer un commentaire