how do you check if a checkbox is checked when clicking submit?
http://ift.tt/2ldx3DT
$('#submit').on('click', function() { if($('#terms').is(':checked')) { } else { alert("To proceed you must accept the terms.") } }); });
Aucun commentaire:
Enregistrer un commentaire