Is there a way to change the default message "Invalid date" by the french equivalent "Date invalide" for an input type="date" in HTML or JS/JQuery.
Thanks !
Is there a way to change the default message "Invalid date" by the french equivalent "Date invalide" for an input type="date" in HTML or JS/JQuery.
Thanks !
You could use this
<input type="date" oninvalid="setCustomValidity('Date invalide')" />
It's pretty well supported
to change the default validation message refer this code
<input type="date" oninvalid="setCustomValidity('Date Invalid ')"
onchange="try{setCustomValidity('')}catch(e){}" />
hope this is what you are asking for there is a bug with george's ans which is seen when you give wroung input once and re edit to enter the correct one and submit the form
I recommend you to use this civem.js script Custom Input Validation Error Messages script