File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 61601
    
  67

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: 61601
    
  67

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