Search code examples
jquerydatetimepicker

Get jquery datetimepicker to grid to minutes


I'm currently using http://trentrichardson.com/examples/timepicker/ . I want when the user drags the "minute" slider to increase by 15. So minutes could only be be 0,15,30,45. How could that be done?

Thanks in advance


Solution

  • Check example #6 on the link you sent, you can set the 'stepMinute' option:

    $('...').datetimepicker({
        stepMinute: 15
    });
    

    Have fun!