Don't just skim trough the code, read it carefully. Naturally, you get the error because your checkbox hasn't got a NAME. I want it so that the error messages only show when the checkbox isn't checked and the user hits the submit button.
In other words, in order to validate a field, you just associate a set of validation descriptors for each input field in the form. For such cases, a function is included which clears all validations in the validator object. Note that this validation if for fields like Textbox and multi-line text box.The script has a catalog of almost all the common validation types built-in.The idea is to create a set of “validation descriptors” associated with each element in a form.I would like to show an alert if no check box was checked in a field.
The idea is that at least one check box should be checked.(note that the form method is post in the HTML form).