WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Date & phone number format

for

From: Randy Pearson
Date: Dec 7, 2003 7:21AM


We tend to prefer the first approach, but with the caveat of being flexible
on the back end. For example, in a phone number, don't disallow spaces,
etc., but rather you can strip out any punctuation on the back end and then
validate what's left (and later render with your own preferred formatting).
With dates, the same applies, but we also interpret 2-digit years for their
most likely meaning.

If you go the multi-field approach, there are some JS approaches to avoid
the tabbing by jumping to the next field when the previous one is "full". Be
cautious with these. I've seen some bad ones, and users may not always be
expecting them, which can lead to confusion.

-- Randy

>