aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery form validation not working 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 form validation not working" Watch "jQuery form validation not working" New topic
Author

jQuery form validation not working

achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 87
I needed to use jQuery for a project but had no idea what it is. So i followed a online tutorial and customized it according to my need .But when i run the page there is no validation. The code is given below(for a JSP page):



I havent worked with jquery or javascript before . So i may be wrong in using the right scripts. Please help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61654
    
  67

First step is to open up the JavaScript console on your browser and see if there are any errors messages being issued.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 87
I tried doing that initially there was an error. But when i added an additional script the error went away. But the validation still doesn't occur.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61654
    
  67

OK, now start setting some breakpoints.
achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 87
Bear Bibeault wrote:OK, now start setting some breakpoints.


Where do you think are the probable places where errors can occour. It is a bit lengthy piece of code and i dont know much about javascript.
 
 
subject: jQuery form validation not working