Check if checkbox if checked or not using jQuery

You can check if the checkbox is checked or not using below code:

  • Checking using checkbox ID.

$('#CHECKBOXID').is(':checked');

  • Checking using checkbox CLASS.

$('.CHECKBOXCLASS').is(':checked');

The above statement will return TRUE if the checkbox is checked and returns FALSE if it is not checked.

Advertisements