The code seems to work perfectly well as it is - see this jsfiddle for a demo.
Are you sure that jQuery is working, and that the selection for the checkboxes is correct?
The code seems to work perfectly well as it is - see this jsfiddle for a demo.
Are you sure that jQuery is working, and that the selection for the checkboxes is correct?