Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery tabs form validation is failing

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a jsp which has many fields as required and we developed som script(maintenanceedit.js) for this like


we cll it in our jsp page onsubmit mehode
My jsp is


as the form goes long we decided to use tabs and added some line in jsp like mentioned above code now am getting a single form in two tabs but the validation is failing added code in script(in head part)


Why the validation getting failed
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is not actually code problem the code is validating correctly but the error message is not witting in to jsp page why
FYI: if i give alert box instead of this

it is working fine. why the message in innerHTML not working
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using jQuery, why would you even write a statement like that instead of using the jQuery .html() method?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic