Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form validation

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to validate my html form using javascript. It is validating properly. after validation I am calling servlet page on that basis of that html page. My problem is, it is showing alert message is there is any field is missing and calling servlet page too with error. I want to be on html page if there is any field is missing. Can any one help me? Please find my code as follow:

[Edit: the code that was originally here has been removed by the author.]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which alert message is showing? There are many in your script.
 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It showing message corresponding missing filed. and after clicking on ok button it execute servlet. I want it should be on same html page focusing that missing filed.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Which alert message is showing? There are many in your script.


What script? I don't see any script posted. I think your eyes are going. ;)

Mark
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The original poster has removed the code from his original post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic