I have been given the task to apply regular expressions on a form validation which I have achieved (using jquery.validate.js). Now, I have to apply a type of regular expressions when the select tag is pointed to US and other type of regular expressions when is pointed to any other country. Any help will be fully appreciated. Thanks in advance.
Share
If you’re using jquery.validate.js when you configure validate and add your rules, try something along the lines of (to add your own rule):
Something like that should get you in the right direction if I understand your question correctly.