Handling checkboxes in JQuery

Some quick notes on handling checkboxes (and probably radio buttons, but I haven't tested that).

To find a count of all checked items with the class

Testbox

.

 

[CODE]$(".Testbox:checked").size()[/CODE]

 

To test an individual item with the ID

Testbox1

use this:

 

[CODE]$('#Testbox1').is(':checked');[/CODE]