jQuery UI datetimepicker option sliderAccess not Showing buttons

◇◆丶佛笑我妖孽 提交于 2019-12-10 22:44:43

问题


i'm using the datetime picker plugin, when i use the option to show

+- buttons next to the slider it doesn't work i don't know why

Notice

  • i'm trying to show this on a desktop browser
  • my console doesn't show any errors

i'm using this given code from the plugin web site

 $('#slider_example_3').datetimepicker({
    addSliderAccess: true,
    sliderAccessArgs: { touchonly: false }
 }); 

jsFiddle to show the problem


回答1:


Is not working because you must include an additional script jquery-ui-sliderAccess.js

I can't find any indication in the docs, but I found it be checking the examples on the site.

Script here: http://trentrichardson.com/examples/timepicker/jquery-ui-sliderAccess.js

Working demo: http://jsfiddle.net/IrvinDominin/6FGgA/



来源:https://stackoverflow.com/questions/18336119/jquery-ui-datetimepicker-option-slideraccess-not-showing-buttons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!