Chrome type=“date” and jquery ui date picker clashing

前端 未结 6 739
再見小時候
再見小時候 2020-12-15 08:06

I have a input box having type=\"date\", everything works fine in IE but in latest version of Chrome it comes with a spinner, Down arrow and with a placeholder of mm/dd/yyyy

6条回答
  •  佛祖请我去吃肉
    2020-12-15 08:19

    I had a similar problem. In my model/viewmodel I had specified the data type as DataType.Date I noticed when I removed this the date picker started working in Chrome. I think tried change the data type as DataType.DateTime and tried again in chrome. This resolved the issue. Not sure if this applies to anyone else but this caused me lots of headache so this might help someone. This worked in MVC4 using jqueryUI 1.8.20

提交回复
热议问题