I have this simple line, that I was hoping would count all checked checkboxes with the class (.photos):
var count = $('.photos').length;
It counts all the checkboxes that have that class (.photos) but it doesn't count the checked ones.
Does anybody know how to alter this line to count the checked checkboxes within this class?
Regards