By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,855 Members | 1,988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,855 IT Pros & Developers. It's quick & easy.

Validating multiple forms

P: 9
Hi All...

for validation one form i know the code, but if multiple form im confused

my case :
I have multiple form and submit in my html code,
this is sample html :
Expand|Select|Wrap|Line Numbers
  1. <form>
  2.    <select>
  3.          <option value="">blah blah</option>    
  4.       .....
  5.    </select>
  6. <input type="submit">
  7. </form>
  8.  
  9. <form>
  10.    <select>
  11.          <option value="">blah blah</option>        
  12.           ......
  13.    </select>
  14. <input type="submit">
  15. </form>
  16.  
  17. <form>
  18.    <select>
  19.          <option value="">blah blah</option>        
  20.          .......
  21.    </select>
  22. <input type="submit">
  23. </form>
how to validation for multiple form?
please give me sample..

thanks b4..
Jul 21 '07 #1
Share this Question
Share on Google+
2 Replies


pbmods
Expert 5K+
P: 5,821
Changed thread title to better describe the problem.

Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.
Jul 21 '07 #2

kovik
Expert 100+
P: 1,044
You have to create a validation function for each one, which is ideally where you'd create a class to link them all together. However, since you're asking, I'll assume you're not quite at that point yet. :-p

Just give each form a different submission handler, exclusive to that form itself.
Jul 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.