javascript - Bootstrap Timepicker - Minute Intervals -


i swapped using jquery ui timepicker using timepicker found here appears jquery ui incompatible twitter bootstrap.

i've managed datepicker , timepicker working lack of functionality of old timepicker - ability control steps in minutes. wish allow user increase minutes of timepicker in 15 minute intervals. worked flawlessly jquery ui using following syntax:

$(function() {   $('#div_id').timepicker({     stepminute: 15   }); }); 

my current code, calls timepicker fine: (stepminute gives no effect, incorrect syntax timepicker)

jquery(function($){     $('#div_id').timepicker({         stepminute: 15     }); }); 

i wish emulate using bootstrap-friendly timepicker linked @ start of question, appreciated.

if don't want change plugin code can use change.bfhtimepicker event ad increment/decrement hour , minutes step.

alternatively, appear little different because ui, can switch bootstrap timepicker plugin implements minutestep feature.

code:

$('#timepicker1').timepicker({     defaulttime: 'current',     minutestep: 15,     disablefocus: true,     template: 'dropdown' }); 

demo: http://jsfiddle.net/irvindominin/e3k37/

ref: http://jdewit.github.io/bootstrap-timepicker/


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -