regex - why doesn't this simple html code work? (pattern) -


could tell me why simple code doesn't work? type random email address .com @ end , receive error address doesn't have right format.

<!doctype html> <html> <body>   <form action="demo_form.asp">   e-mail: <input type="email" name="email" pattern="\.com$">   <input type="submit"> </form>  </body> </html> 

maybe works

<form action="demo_form.asp"> e-mail: <input type="email" name="email" pattern="+\.com$"> <input type="submit"> </form> 


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -