validation for at least one checkbox
Working demo http://jsfiddle.net/RGUTv/ Updated – 12 Jan 2015 => http://jsfiddle.net/r24kcvz6/ CDN was cahnged http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.js – you can replicate the behaviour by deselcting all the checkboxes and clicking on the submit button. http://jqueryvalidation.org/#latest-files-on-jsdelivr-cdn-%28hotlinking-welcome%29: code $.validator.addMethod(‘require-one’, function(value) { return $(‘.require-one:checked’).size() > 0; }, ‘Please check at least one box.’); var checkboxes = $(‘.require-one’); var checkbox_names = $.map(checkboxes, … Read more