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
Post a Comment