i\'m triyng to validate a form. In this form you\'ve to choose at least one element by checkboxes, and I can\'t be sure about their quantity (it depends by elements number).
You can use :checked selector along with .length to find checked checkbox count:
:checked
.length
var len = $(".roomselect:checked").length; if(len>0){ //more than one checkbox is checked }
Demo