I have collection of inputs of type checkbox
var collection = $(\'.className\'); console.log(collection);
result is:
[span.clas
You could test for checked: $('.className:checked');
$('.className:checked')