Testing if a checkbox is checked with jQuery

Use .is(':checked') to determine whether or not it’s checked, and then set your value accordingly.

More information here.

Leave a Comment