VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: musqsim on November 20, 2012, 14:04:20 PM

Title: ZIP Code user verification
Post by: musqsim on November 20, 2012, 14:04:20 PM
Hi everyone!

I want to verify if user zip code is in XXXX-XXX format, (where X is ONLY NUMBER)...

Something like this: http://html5pattern.com/ (http://html5pattern.com/)

How and where can I do it?

Thanks in advance!

Joomla 2.5.7
Virtuemart 2.0.14
Title: Re: ZIP Code user verification
Post by: chetanmadaan on November 22, 2012, 01:36:40 AM
it can be done by javascript and you can use the tutorial below.

just add the field id whatever zip gets in the html and use it.

http://www.cambiaresearch.com/articles/39/how-can-i-use-javascript-to-allow-only-numbers-to-be-entered-in-a-textbox