Use prop() instead of attr() for checking the value of checkboxes. Using attr() doesn't work as of jQuery 1.6 (see http://api.jquery.com/attr/ ).