0

Is that I can change the message content validation of input in html 5.

Example :

The message Validation should have : Enter your Name please

Ayed Mohamed Amine
  • 587
  • 2
  • 10
  • 30
  • 1
    Yes, you can do this with JS. Please, see this link... [Link](http://stackoverflow.com/questions/13798313/set-custom-html5-required-field-validation-message) – bud-e Nov 06 '14 at 08:46
  • well, you can take it a step further and use this tiny lib - https://github.com/yairEO/validator – vsync Nov 06 '14 at 09:23

1 Answers1

2
<input type="text" required="" pattern="[A-Za-z]+" value="" oninvalid="setCustomValidity('Enter your Name please')"/>

Not sure if that is the right regex for your name field but you can change the validation message with oninvalid="setCustomValidity('Enter your Name please')"