Menu icon Foundation

Developer | Morgantown, WV

My Posts

No Content

My Comments

Michael Wendell commented on Peter's post almost 3 years

Please note that the code above will definitely show an updated error tooltip, it will also prevent the tooltip from being dismissed, and may prevent the form itself from validating.
To use this code properly, it should be revised as shown below:
<input type='text' name='Name' placeholder='Your name' oninvalid="this.setCustomValidity(this.willValidate ? '' : 'Set your name!!')" required />
 Although I would recommend choosing a friendlier error message!
m.
 

Posts Followed


Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Peter's post almost 3 years

Please note that the code above will definitely show an updated error tooltip, it will also prevent the tooltip from being dismissed, and may prevent the form itself from validating.
To use this code properly, it should be revised as shown below:
<input type='text' name='Name' placeholder='Your name' oninvalid="this.setCustomValidity(this.willValidate ? '' : 'Set your name!!')" required />
 Although I would recommend choosing a friendlier error message!
m.
 

Posts Followed

Following

  • No Content

Followers

  • No Content