简体   繁体   中英

Rails JQuery Timepicker : “No method slider”

I'm try to use the Timepicker addon to the JQuery Datepicker widget. When I call $(function (){ $('#scan_time').datetimepicker(); }); and click on the text field I get the following error in my Chrome console

Uncaught TypeError: Object # has no method 'slider'

I am loading all the files in my Application.js

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .

and I have the time picker addon.js in my Javascripts in my javascripts directory

You need to be absolutely sure your js files are all being loaded. Search for the contents in application.js after the page is loaded...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM