0

Is it possible to change the text of the html5 email validation popup?

<form>
<input type="email" placeholder="Enter your email">
<input type="submit" value="Submit">
</form>

enter image description here

The text 'Please enter an email address.' with a different text?

Community
  • 1
  • 1
Grasper
  • 1,303
  • 11
  • 24

1 Answers1

0

Try This,

 <input type="text" pattern="[a-zA-Z]+"
oninvalid="setCustomValidity('Plz enter on Alphabets ')"
onchange="try{setCustomValidity('')}catch(e){}" />

Jsfiddle Demo : http://jsfiddle.net/2USxy/

Jishad
  • 97
  • 2
  • 8