Search code examples
javascriptjquerydatetimepicker

Not able to show icon in Trent Richardson datetime picker


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.


Solution

  • 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