Manuel Moreno Manuel Moreno - 1 year ago 92
HTML Question

HTML type="email" error message language change

How do you change the language of the default error message you get with type="email"?

Answer Source

You can use HTML oninvalid Event Attribute

<input type="email"  required oninvalid="this.setCustomValidity('Por favor, introduce una dirección de correo electrónico válida')"/>
<input type="submit"/>


enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download