File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery Validator and select

 
K Mansoor
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
K Mansoor
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clean, terse, beautiful!

Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic