Reputation: 1113
Hi i want to change the tool-tip required message in angular js.
when i hover to text box it shows "Please fill out the fields" message.
I want to change change the message as"Please Enter the value".
How to change the error message.
Here I have attached the link
https://www.w3schools.com/code/tryit.asp?filename=FF9BZ4J5MZOW
open the link and select run.
Upvotes: 0
Views: 358
Reputation: 7273
<input type="text" required name="SKU" placeholder="Textbox" title="Please fill out the fields" />
Make use of the title attribute.
or you can use the HTML5 method to set custom messages. Check here
textEl.setCustomValidity("This feild is required.");
Upvotes: 1
Reputation: 1054
<input required type="number" min="0" name="No" title="Please Enter the value" />
Upvotes: 1