Return to Snippet

Revision: 51267
at September 20, 2011 00:18 by vagrantradio


Initial Code
$("#formId").submit(function(){
    var checked = $("#formId input:checked").length > 0;
    if (!checked){
        alert("Please check at least one checkbox");
        return false;
    }
});

Initial URL

                                

Initial Description

                                

Initial Title
Check If One Checkbox Is Checked

Initial Tags

                                

Initial Language
jQuery