Date Pickers
2013-05-29
Great post on the pros and cons of native date pickers
After much deliberation, I’ve taken the approach of originally setting the field to a ‘date’ type and then switching it to a ‘text’ type if Modernizr.inputtypes.date is true for both desktops and browsers. Meaning, if the browser supplies a native date picker, override it, but keep the type ‘date’ in the original HTML for semantic purposes. I may change my mind about touch devices, as there are nice interfaces, but in Chrome’s current desktop implementation, it is definitely a hassle to change the year.<br />
Written on May 29, 2013