Answers for "at leastone checkbox required jquery"

0

at leastone checkbox required jquery

$.validator.addMethod("roles", function(value, elem, param) {
   return $(".roles:checkbox:checked").length > 0;
},"You must select at least one!");

<input class='{roles: true}' name='roles' type='checkbox' value='1' />
Posted by: Guest on March-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language