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
You can do something like this:
$("#editRecord").validate({ rules: { 'Details1': { required: function() { return $('input[name=Question1]').val() == 'yes'; } } 'Details2': { required: function() { return $('input[name=Question2]').val() == 'yes'; } } } });