I am using the jquery validator, but when the user want to search for results that only match IP Addrese, the other field for External IP Address show validation error, ho to show the validation error only for the field of IP that was filled ?
Here is what I have in the js file :
$(document).ready(function() { $("#agentsSearchForm").validate({ rules: { valueApiAddress: { ipAddressFormat: true }, valueExternalApiAddress: { ipAddressFormat: true }, valuePort: { range: [1, 65535] } }, messages: { valuePort: { range: "Valid port range is 1 to 65535." } } });
Thanks, your help is aapreciated.