Tag Archives: JQuery

Handling checkboxes in JQuery

Some quick notes on handling checkboxes (and probably radio buttons, but I haven’t tested that) in JQuery.
To find a count of all checked items with the class Testbox.
$(“.Testbox:checked”).size();
To test an individual item with the ID Testbox1 use this:
$(‘#Testbox1′).is(‘:checked’);

Posted in Technology | Tagged , | 2 Comments