Validate using JQuery if a checkbox is checked


If you are writing a JQuery code, and you need to add some validations working with checkboxes, the following snippet would help you.

Checkbox:

JQuery code to validate if it is checked: