Conditional Validation using JQuery Validation Plugin

后端 未结 3 2044
孤街浪徒
孤街浪徒 2020-12-29 08:57

I have a simple html form that I\'ve added validation to using the JQuery Validation plugin. I have it working for single fields that require a value. I now need to extend t

3条回答
  •  情深已故
    2020-12-29 09:57

    In response to Nick Craver's suggested response above, I found the correct syntax to be:

    class="validate[required][name=Question1][value=Yes]:checked"

    instead of what he posted.

    Thanks for putting me on the right track, though!

提交回复
热议问题