[Solved] jQuery Custom validation


From the plugin docs, it appears all you need is a required dependency callback

$(selector).validate({    
    rules:{
       Name:{
           required: function(element){
            return $("#ID").val() == 1 && $("#IDName").val() == 0;
       }
    },
    messages:{
        Name:{ required: 'Enter an individual.'}
    }
})

3

solved jQuery Custom validation