I have collection of inputs of type checkbox
var collection = $(\'.className\'); console.log(collection);
result is:
[span.clas
if ($('.className input[type="checkbox"]:checked').length>0){ console.log("At least 1 selected!"); }