How can I make a message appear when I uncheck all the checks and while it is marked one or more check shows another message
<label for="1">Checkbox 1</label>
<input type="checkbox" class="check" name="1" value="1">
<label for="2">Checkbox 2</label>
<input type="checkbox" class="check" name="2" value="2">
<label for="3">Checkbox 3</label>
<input type="checkbox" class="check" name="3" value="3">
$(document).ready(function() { $("input[type="checkbox"]:checked").each(function() { alert('check'); }); });
Aucun commentaire:
Enregistrer un commentaire