How to set the default date in html5 date element
<input type="date" min="1940-01-01" max="2012-12-31" id="datepicker" name="mybirthday" placeholder="Birthdate(MM/DD/YYYY)" />
The default date is set to 2012-12-31. How to change that?
How to set the default date in html5 date element
<input type="date" min="1940-01-01" max="2012-12-31" id="datepicker" name="mybirthday" placeholder="Birthdate(MM/DD/YYYY)" />
The default date is set to 2012-12-31. How to change that?
Just add a value attribute. e.g. value="2011-06-15"
<input type="date" min="1940-01-01" max="2012-12-31" id="datepicker" name="mybirthday" placeholder="Birthdate(MM/DD/YYYY)" value="2011-06-15" />