Pages tagged validations

Checkbox checked validation using JavaScript

You can check whether a checkbox is checked or not using checkbox_elemnt.checked attribute.

Checkbox validation using jQuery

Suppose you have a check box with ID agree_checkbox. You can check whether the checkbox is checked using this jQuery code:

How to do multiple checkbox validation in Javascript

Checkboxes can be used as a single checkbox (like an on-ff switch) or as a group of checkboxes where the user can select one or more options.

How do we do validations when you have multiple checkboxes? Here are some samples.

Google reCaptcha 2 JavaScript Validation (client side)

reCaptcha is a great "bot" detection solution from Google. Google watches the pattern of user interaction to decide whether it is a "bot" or a real user. It is near impossible for a "bot" to simulate those patterns. So reCaptcha succeeds in blocking spam most of the time.