JQuery 1.7 breaks JQuery Datepicker?

蓝咒 提交于 2019-12-12 02:47:48

问题


One of the best datepickers around these days I think is still Kelvin Luck's jquery-datepicker

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/

However, the latest jquery (jquery 1.7+) breaks this datepicker silently. I was just wondering if anyone has looked into the issue, or how we can fix this potentially


回答1:


I prefer to use the datepicker from jquery-ui, I don't know if it is different but it seems more in sync with jquery releases, has a larger user base and developer pool.




回答2:


They did fix it for jQuery 1.7.

The code is maintained on GitHub here: https://github.com/vitch/jQuery-datepicker

An update to the fix for jQuery 1.7 is mentioned here: https://code.google.com/archive/p/jquery-datepicker/issues/377

I updated to the latest version in a client application today and am able to get the DatePicker to appear now in jQuery 1.7. At this moment, the latest commit to their GitHub repo is from August 2014, so it's been more than a year... as long as it's been stable since then I see no reason why it should have needed frequent updating.



来源:https://stackoverflow.com/questions/9525089/jquery-1-7-breaks-jquery-datepicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!