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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With