![]() |
#1 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2011
Location: ,
Posts: 51
|
![]() The noob has returned.
Generally, if I want to do form validation I use the following format: Code:
function validateForm(myForm) { if (failure conditions) { show error message; return false; } return true; } <form onsubmit="return validateForm(this);"></form> Code:
function validateForm(myForm) { if (failure conditions) { show error message; } myForm.submit(); } <form onsubmit="validateForm(this); return false;"></form> What are your thoughts? |
||
![]() ![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
javascript help? | Maxor127 | Programming | 1 | 08-10-2009 06:30 AM |
Something weird with JavaScript | The Fifth Horseman | Programming | 2 | 15-07-2009 08:08 PM |
Javascript And Firefox | Abi79 | Tech Corner | 3 | 09-04-2006 05:53 AM |
Thread Tools | |
Display Modes | |
|
|
||
  |