W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > June 2011

[Bug 12988] I'm a bit in trouble on what type to apply for zip- postcodes. I would use type=number, but then I cant use the maxlenght attribute. While using type=text there are no max min attributes. No matter what type I choose, none of them works for zip- postcodes

From: <bugzilla@jessica.w3.org>
Date: Sat, 18 Jun 2011 16:47:30 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QXygE-0003dq-3i@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12988

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jackalmage@gmail.com
         Resolution|                            |WORKSFORME

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-06-18 16:47:29 UTC ---
Use <input type=text pattern="\d{5}(-\d{4})?">.

I'll close this bug as WORKSFORME - please reopen if you feel your problem
isn't addressed.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 18 June 2011 16:47:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 June 2011 16:47:40 GMT