|
Articles > jQuery > How to check whether a checkbox is checked in jQuery |
|
How to check whether a checkbox is checked in jQuery
Author: Venkata Sudhakar
The below example shows how to check whether a checkbox is checked in jQuery.
02 | if ($( "#licenseAgreement" ).is( ':checked' )) { |
09 | if ($( "#licenseAgreement" ).prop( 'checked' )) { |
16 | if (document.getElementById( 'licenseAgreement' ).checked) { |
|
|