Keeping Track of Checkboxes

Keeping Track of Checkboxes

Hi,
I have around 30 check boxes in a form and I need to keep track of their status if they are checked or not and based on that change the data in the dom.

I am stuck on the logic of how to implement or code for 30 check boxes. I was using the below example code but there will be a lot of if statements as I need to always know what their status is. Is there a better way I can manage so many check boxes ?


if($(this).is(":checked"))       


Any hep will be highly appreciated.

Cheers,
Vishal