Not able to show icon in Trent Richardson datetime picker

北城以北 提交于 2019-12-11 05:34:06

问题


Here is working example in jsFiddle. The icon shows only when I am using jQuery UI 1.8.18, if I am using the latest version which is jQuery UI 1.8.21, then the icon won't show up?

Is there a bug or am I missing something?

The Trent datetime picker documentation is here.It says "In addition all datepicker options are still available through the timepicker addon."

Thanks.


回答1:


Error: $("#from-datetime").datetimepicker is not a function Source File: http://fiddle.jshell.net/_display/ Line: 73

It's just a datepicker not datetimepicker Datetimepicker is another jquery plugin, may be it's not compatible with newest JUI

Working example http://jsfiddle.net/uDVwx/3/

The point is you have to call in this order: jquery, jquery ui, jquery addons. But as I look at the console debug, there is an error with datetime picker addon and jquery ui 1.8.21



来源:https://stackoverflow.com/questions/11415422/not-able-to-show-icon-in-trent-richardson-datetime-picker

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