Jquery datetimepicker - Advance time by 1 hour

后端 未结 3 502
遇见更好的自我
遇见更好的自我 2021-01-15 08:35

I\'m currently using the jQuery datetimepicker add-on from here

It works just about perfectly, but I\'m stumped on how to add a small bit of functionality to it. I c

3条回答
  •  不要未来只要你来
    2021-01-15 08:56

    yes, it extends the JQuery-UI Datepicker which has different callbacks to handle a selection

    you can check out the onSelect documentation and use it on your timepicker

    $('#example').datetimepicker({
        onSelect: function(){
                  //add 1 hour to start time
            }
    });
    

提交回复
热议问题