I have the following piece of html code for form checkboxes
5条回答 [愿得一人] (楼主) 2021-01-15 02:46 Try with this $("#YourbuttonId").click(function(){ if($('input[type=checkbox]:checked').length == 0) { alert('Please select atleast one checkbox'); } }); By Plugin HTML Loading Point Unloading Point Retailer Unloading Script rules:{ "spamm[]": { required: true, minlength: 1 } } 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Try with this
$("#YourbuttonId").click(function(){ if($('input[type=checkbox]:checked').length == 0) { alert('Please select atleast one checkbox'); } });
By Plugin
HTML
Loading Point Unloading Point Retailer Unloading
Script
rules:{ "spamm[]": { required: true, minlength: 1 } }