HTML5 Date Input Type Interfering with jQuery Datepicker

前端 未结 4 1485
孤街浪徒
孤街浪徒 2020-12-08 22:14

I am using the jQuery UI\'s datepicker for date selections on my site. One of my users just upgraded to the newest version of Chrome, which has built-in native date picker f

4条回答
  •  生来不讨喜
    2020-12-08 22:43

    Either switch from using input[type=date] to input[type=text] or use Modernizr to detect support for the native datepicker. I've wrote a post about the implications of both options here - http://tjvantoll.com/2012/06/30/creating-a-native-html5-datepicker-with-a-fallback-to-jquery-ui/.

提交回复
热议问题