'How set time for validation message on HTML5 form required attribute?
I am using HTML5. On form validation, the message will be shown for about 5 seconds. How to change it to be visible for 10 seconds?
<form>
<input name="name" required />
<input type="submit" value="Submit"/>
</form>
Solution 1:[1]
The UI is implemented by the browser and isn't customisable. Different browsers will implement it differently. (e.g. when I test it, the message is displayed until I interact with the page again).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Quentin |
