trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Uncaught TypeError: undefined is not a function #718

Closed feelx closed 10 years ago

feelx commented 10 years ago

Hi

I know this is a very generic error message but it is indeed popping up in my debug console whenever I try to use datetimepicker on a id or class.

I am using Ruby on Rails, therefore, I am using the jquery-rails and jquery-ui-rails gems in order to use jQuery - all the required files are loading (datepicker(); works).

This works - I get the calendar: $(function() { $('.calendar').datepicker(); });

This does not work - calendar not popping Whenever I put this code, I get the error message being the subject of this posted issue. $(function() { $('.calendar').datetimepicker(); });

And it seems that jquery and jquery-ui are loaded before datetimepicker...

abhinavmsra commented 9 years ago

I am having the same error. Did you find out what had happened?