I am quite new to Javascript and I am looking for some code that can be used to check whether some fields have the right values in them, before being submitted.

Is there some standardized Drupal way of doing so, or some guides to doing so?

Comments

Try this...