HighDots Forums  

Data Validation

Javascript JavaScript language (comp.lang.javascript)


Discuss Data Validation in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KDawg44
 
Posts: n/a

Default Data Validation - 09-25-2007 , 11:12 AM






I am validating some html form input data with some javascript. How
do I prevent the form from performing the ACTION if the data
validation fails?

Thanks.


Reply With Quote
  #2  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: Data Validation - 09-25-2007 , 11:15 AM






On 25 Sep, 16:12, KDawg44 <KDaw... (AT) gmail (DOT) com> wrote:
Quote:
I am validating some html form input data with some javascript. How
do I prevent the form from performing the ACTION if the data
validation fails?

Thanks.
return false;



Reply With Quote
  #3  
Old   
KDawg44
 
Posts: n/a

Default Re: Data Validation - 09-25-2007 , 11:16 AM



On Sep 25, 10:12 am, KDawg44 <KDaw... (AT) gmail (DOT) com> wrote:
Quote:
I am validating some html form input data with some javascript. How
do I prevent the form from performing the ACTION if the data
validation fails?

Thanks.
Nevermind. I did not have the return in the onSubmit part of my form
tag. All set now.

Thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.