Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
129
rated 0 times [  135] [ 6]  / answers: 1 / hits: 76344  / 11 Years ago, wed, march 20, 2013, 12:00:00

I use <input type=date> fields that gracefully fallback to jQuery when the browser does not have support for the field. Relatively recently, Chrome started offering a native date picker, which is great. But I have found that many users miss the little arrow that brings up the calendar and therefore miss the fact that there is an easy calendar for date selection.



Chrome



To make this more intuitive, it would be great if I could bring up the native datepicker UI when the user moves the focus to the input or clicks another element (like a small calendar icon).



Is there a method that I can use in Chrome to trigger the datepicker UI?


More From » html

 Answers
17

Chrome 99+ added the showPicker() method:
https://chromestatus.com/feature/5692248021794816


Full docs and cross-browser compatibility gird: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker


[#79459] Tuesday, March 19, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
christianu

Total Points: 481
Total Questions: 124
Total Answers: 99

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
2 Years ago
christianu questions
;