with the jQuery.validation plugin is it possible to set a field for telephone numbers only, zipcodes only, and email only. then when the submit button is press display the error next to the button?
I’ve looked into HTML5 and it has input types for Telephone, Numbers, and Emails but it doesn’t seem to be support by all the newer browsers yet. So I’m looking for a simple method without having to redesign my FORM
Yes, of course its possible. Have you looked at the demos? Or the documentation?
If the validations that ship with
jquery.validate.jsaren’t enough you can check out the ones inadditional-methods.js, or if worse comes to worse, you can always extend the validator with your custom validation method.edit:
phoneUS, phoneUK, mobileUK, ziprange, email2 are in
additional-methods.jsnumber, email are in
jquery.valiadte.js