who is callan mulvey dating - Validating checkboxes using php
If not, an alert is displayed and focus is moved to the checkbox.
Not the prettiest solution, but functional in all browsers with Java Script enabled.
From that you should be able to figure out what the problem is with your IF condition.
While HTML5 form validation is typically about missing or invalid text inputs, there are other form element types that also require attention. Suppose you have a form on your website that at the bottom asks people to "accept the Terms and Conditions" or something similar.
Please note that the checkboxes have the exact same name ( form Door[ ] ). Using the same name indicates that these checkboxes are all related.