/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 $("#formId").submit(function(){ var checked = $("#formId input:checked").length > 0; if (!checked){ alert("Please check at least one checkbox"); return false; } });
Comments
                    Subscribe to comments
                
                