GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery tabs form validation is failing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery tabs form validation is failing" Watch "jQuery tabs form validation is failing" New topic
Author

jQuery tabs form validation is failing

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

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

Joined: Mar 18, 2011
Posts: 243

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

Joined: Jan 10, 2002
Posts: 61315
    
  66

If you are using jQuery, why would you even write a statement like that instead of using the jQuery .html() method?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: jQuery tabs form validation is failing