input type="email"
Posted
by
Charles
on Pro Webmasters
See other posts from Pro Webmasters
or by Charles
Published on 2011-06-22T13:39:22Z
Indexed on
2011/06/22
16:30 UTC
Read the original article
Hit count: 167
I have a form where I ask for email addresses. Usually I'd use
<input type="email" ...>
but I want to allow a user to type foo
rather than [email protected]
in the (likely) case that they are using an @mycompany.com
email address. Is there a way to get around the validation (if format matches this regex, accept; otherwise, validate normally), or should I just use
<input type="text" ...>
and ignore the semantics and so forth?
© Pro Webmasters or respective owner