Friday, February 15, 2013

Count of checkboxes in a checkboxlist object

since thisis rendered by asp.net as a table I thought a count of the cells would work.
it worked in IE but not Chrome

so I did this

$(":input[id^=chkListblah_]").length;

where the checkboxes id's were chkListblah_1, chkListblah_2 etc.

No comments:

Post a Comment