I have a table displaying multiple rows of data, each row contains a checkbox. I know how to bind to the click event with jQuery, but what I'm struggling with is how to count the number of checkboxes that are checked. If two are already checked and the user tries to check a third, I need to popup a dialog telling them that only two records can be selected and that they must uncheck one before they can check another. I know how to use .dialog, so we don't need to get into the details of that. I just need a little push on iterating over all the checkboxes and determining if they are checked or not.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson