News:

Support the VirtueMart project and become a member

Main Menu

ZIP Code user verification

Started by musqsim, November 20, 2012, 14:04:20 PM

Previous topic - Next topic

musqsim

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/

How and where can I do it?

Thanks in advance!

Joomla 2.5.7
Virtuemart 2.0.14

chetanmadaan

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