HTML5 Email Input Type

I am thinking of using a input type="email"new site for me, but I have a question if you want to use text like input and then check the value by regular expression or use this HTML 5 Email

E-mail: <input type="email" name="usremail" />

When using (for example, browser or use) there is a problem with an email address such as HTML?

+5
source share
6 answers

You can use html5 email to verify, but it only validates XXXX @XXXX to a valid email lol

for me, at least I would say just use jquery validate and always check on the server side

, , ,

modernizr

+4

, . modernizr, , , . ( HTML5 - jQuery validation)

http://dev.w3.org/html5/markup/input.email.html :

/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/

.

+5

HTML5 - , , input type='email' Chrome, FF, IE. : HTML5 JS : http://code.google.com/p/webforms2/

+2

Email:

enter <input type="text" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" >

HTML5 (http://davidwalsh.name/html5-email)

0

this type of input "E-mail:" does not work in IE9 and safari, therefore it will be considered how it works only on google chrome and mozila fire fox, this E-mail: automatically checks whether the browser supports HTML5

-1
source

All Articles