I am using jQuery Validation plugin to validate check box since it does not have default option, One should be selected and max two check boxes can be selected, these is the
There is the easy way
HTML:
x y z Submit
JQUERY:
$("#submit").on("click",function(){ if (($("input[name*='test']:checked").length)<=0) { alert("You must check at least 1 box"); } return true; });
For this you not need any plugin. Enjoy;)