5

I am working on HTML5 form validation. If a user tries to submit the form with required input field empty, it displays an error message as shown in the picture.enter image description here

But, I would like to customize the error message to something like "Please provide a valid password" . How can I achieve this? Is javascript only the solution for this?

-thanks

user3303274
  • 729
  • 2
  • 8
  • 21
  • 1
    similar question http://stackoverflow.com/questions/13798313/set-custom-html5-required-field-validation-message demo jsfiddle link http://jsfiddle.net/B4hYG/437/ – Akshay Khale Jul 03 '15 at 11:13
  • I am upvoting this question, because of its clarity...l a quick google search could get you the answer. – Thalaivar Jul 03 '15 at 11:16

1 Answers1

0

I cannot believe a google search didn't give you the answer. There are 5+ topics on this

Simplest answer

Community
  • 1
  • 1
SDekov
  • 9,276
  • 1
  • 20
  • 50
  • ya, my bad ! I might have wonder too much on unnecessary search for this simple thins. thank you for the response – user3303274 Jul 03 '15 at 11:35