Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with Trent Richardson timepicker and datetimepicker

I'm trying to implement Trent's timepicker, but I'm not being able to do it. I'm testing it in Chrome, Firefox, and IE9.

I already imported Jquery and Jquery UI. The only common error I could find was that Jquery UI wasn't the full version(without slides), but that's not my case. Anyway, the errors are the following

Cannot set property 'formatTime' of undefined (line ...)
$.datepicker.formatTime = function(format, time, options) { (this is the line)

Cannot call method '_newInst' of undefined
$t.datepicker($.timepicker._newInst($t, o)._defaults);

I would thank any help, I'm really new at jQuery and I don't really get it.

like image 746
iBadell Avatar asked Oct 23 '22 08:10

iBadell


1 Answers

I had this exact same problem earlier today. I solved it by making sure I had the latest versions of jQuery and jQuery UI (at first I only updated jQuery and the problem persisted). I would also make sure you have the latest version from Trent Richardson.

like image 92
Mike L Avatar answered Oct 27 '22 09:10

Mike L