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.
Lower than jQuery 1.7
You can also use the jQuery :checked selector to check if the checkbox is checked using the following example.