aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery Validator and select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery Validator and select " Watch "jQuery Validator and select " New topic
Author

jQuery Validator and select

K Mansoor
Ranch Hand

Joined: Jan 10, 2006
Posts: 52
I'm trying to disallow form submission if SELECT'ed OPTION is 7, however the validation method never gets invoked, the rest of validation works fine.



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

You are using the validation method management incorrectly.

Here's a page I set up that demonstrates how I would go about it:



Note how much more general it is than your hard-coded approach.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
K Mansoor
Ranch Hand

Joined: Jan 10, 2006
Posts: 52
Clean, terse, beautiful!

Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

The validation plugin is really useful, but it can be hard to know how to use its advanced features. I still have a lot to learn about it myself!

Glad this helped get you going!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery Validator and select