I need e-mail type field in HTML5 to validate e-mails containing also letters ñ and Ñ, so I created this input field:
<input autocomplete="off" class="form-control"
data-val="true" data-val-email="El E-mail ingresado es incorrecto."
data-val-length="El E-mail debe tener como máximo 80 caracteres."
data-val-length-max="80" data-val-required="El campo E-mail es obligatorio."
id="Email" name="Email"
pattern="^[a-zA-Z0-9ñÑ.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
placeholder="E-mail" required="required" type="email"
value="kacuña@domain.com">
Test address is kacuña@domain.com.
If I test that regular expression in https://regex101.com/ it works, but not in Chrome. It seems that Chrome does not recognize that attribute.
Is there a way to do that?
Thanks Jaime