You have to write a custom check for this, its pretty easy to do: 
http://mootools.net/docs/more/Forms/Form.Validator#AddingValidators:add

here you go:
http://jsfiddle.net/YpDsV/


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lorenzo De Tomasi
Sent: Friday, April 16, 2010 9:51 AM
To: MooTools Users
Subject: [Moo] Italian ZIP code validation (Codice d'avviamento postale
(c.a.p.))

How can I validate a textfield that can accept only numbers (no other
digits like -, . etc.),
but decimal (1.11) are not accepted
and numbers starting with one or more zeros are accepted (00122)?

This is a typical Italian ZIP code.
Thank you.


-- 
Subscription settings:
http://groups.google.com/group/mootools-users/subscribe?hl=en

Reply via email to