Tuesday, 10 September 2013

HTML Input Type Date - Select and Collapse

HTML Input Type Date - Select and Collapse

When using an input type date in HTML5, after the user clicks on a date,
the calendar stays expanded forcing them to click away from the calendar
to make it collapse. I'd like for this to happen in a single click (i.e.
when they click on the calendar, the date is recorded, the calendar
collapses and they can get on to other business). Can anyone tell me how
to do this? Thanks!
<label>Date</label>
<input type="date" id="my_date">

No comments:

Post a Comment