Validate plugin, dependancy question
HI,
I'm just now learning how to perform form validation using the jquery validate plugin.
i was wondering, how can i get the code below to work? i have a field that is required, but not required if the USA option is selected or the first option is selected from a <select> menu.
- prodImport: {
required : function(element){
return ($('#prodCountry').val() != 'USA' || $('#prodCountry').val() != '');
}
}
Thank you!