[OSM-dev] two javascript challenges for enthusiastic hackers

Andy Street mail at andystreet.me.uk
Thu May 17 12:05:07 BST 2007


On Thu, 17 May 2007 11:43:19 +0100 "Nick Black" <nickblack1 at gmail.com>
wrote:

> Q1:  How can I stop the form from submitting if the details aren't
> correct?

Change the onclick in the submit button to the following:

  onclick="return formValidation();"

Then return false from the function whenever you wish to stop the form
submitting.

Regards,

Andy




More information about the dev mailing list