jQuery.Validate Conditional Validation RadioButton and DropDownList

前端 未结 3 1234
醉酒成梦
醉酒成梦 2020-12-06 02:56

I am trying to set up some validation, so that if the \'Yes\' radio button is checked another control, which is a drop down list needs to be validated to ensure it is not se

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 03:33

    This doesn't work with current version of Validate.js (v 1.7)

    I was also able to prove the very concept doesn't work:

    rules: { 
      xyz: { 
        required: function(element) { 
          return true; 
        } 
      }                 
    } 
    

    This also fails.

提交回复
热议问题