jquery TimePicker interval

泪湿孤枕 提交于 2019-12-11 10:14:40

问题


I am having the hardest time trying to figure out how to get the drop down intervals of time picker to set to 15min intervals. Its defaulted to 30mins atm. What is the proper call/notation to get it to work? I've tried many variations of putting them in '' and without but no progress. Thanks!

   $(str).timepicker({
        'interval': '15',
        'timeFormat': 'g:ia',
        //stepMinute: 15
    });

回答1:


step is what you are looking for:

$(str).timepicker({
     'step': '15'
});


来源:https://stackoverflow.com/questions/35489684/jquery-timepicker-interval

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