0

In the atributte required the text "please fill outfield" that appears is deafult or can you change it?

In the code writen it does not explain that. Can someone pls help :)

30th May 2016, 12:29 PM
Gerald Ibra
Gerald  Ibra - avatar
2 Answers
+ 3
You can use the oninvalid event to change the message. For example: <form> <input id="name" type="text" required="required" oninvalid="this.setCustomValidity('Some custom text')" /> <input type="submit" name="submit" value="Submit" /> </form>
30th May 2016, 1:27 PM
James Flanders
0
Interesting
3rd Jul 2016, 3:55 PM
Cele Prince
Cele Prince - avatar