How to Check if a Checkbox is Checked or not Using jQuery

checkbox is checked

You can use jQuery to check if a checkbox is checked. You can either use the prop() method in jQuery 1.7 or the attr() method in lower versions. We will also show you how to use the :checked selector to achieve the same result.

jQuery 1.7+

Lower than jQuery 1.7

You can also use the jQuery :checked selector to check if the checkbox is checked using the following example.

Read Also  Dill Seed, the Condiment Spice of the Mediterranean so Delicate