• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The form is not submitting

 
navalk joshi
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're form calls validate() on submitting. That always returns false, which causes the form submit to abort. This behaviour was built in to allow JavaScript to prevent a form from submitting if some fields were not filled in properly. You appear to want to use it in this way, but you need to return true to allow the form to submit.
 
navalk joshi
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey rob....here what i want is ....first the validation through javascript then ofcourse the submission of the form ...which is not happening at all........where should i modify the code to have the desired functionality......
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64180
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have already been given the answer: when you wish the form to submit do not return false.
 
navalk joshi
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks to both of you rob and bibeault.......my query is resolved
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic