/ Published in: jQuery
Expand |
Embed | Plain Text
$("#formId").submit(function(){ var checked = $("#formId input:checked").length > 0; if (!checked){ alert("Please check at least one checkbox"); return false; } });
You need to login to post a comment.
