Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Styling default validation tooltip

Is it possible to style the default tooltip? Here's a JSFiddle demonstrating the default tooltip.

<form>
    <input type="text" placeholder="Submit without entering value" required>
    <input type="submit">
</form>
like image 334
CloudBranch Avatar asked Aug 13 '16 07:08

CloudBranch


2 Answers

You can not change "default tooltip" (HTML5 validation bubble) - it is determinated by browser vendor and several other params like browser language.

You can, however, prevent validation bubble - by doing something like

<input placeholder="Lorem ipsum..." required oninvalid="myCustomFunction()" />

From now on, with myCustomFunction you can develop your own bubble.

Reference.

like image 76
Miloš Đakonović Avatar answered Sep 20 '22 00:09

Miloš Đakonović


this article nicely sums up the possibilities

>> http://developer.telerik.com/featured/building-html5-form-validation-bubble-replacements/

like image 29
Honza Avatar answered Sep 18 '22 00:09

Honza