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

nedjo’s picture

Sorry, this isn't the best place to ask your question. Maybe try posting to a support forum, http://drupal.org/forum/4 ?

cyb-2’s picture

You are looking for Ajax module for Drupal, available at: http://drupal.org/node/349961

sun’s picture

Status: Active » Closed (won't fix)

This project has a new purpose.

OpenChimp’s picture

To my knowledge, there is not a standard approach for this. The Validation jQuery library can probably handle any of your needs. http://docs.jquery.com/Plugins/Validation

I would love to see drupal adopt a standard library like this one so that all form based modules and themes could leverage the same code.