How to set time in bootstrap timepicker

0

Hello, how do I set the timepicker to current time or 01:00?

$('.timepicker').timepicker({
        showInputs: false,
        defaultTime: '',
        minuteStep: 1,
        disableFocus: true,
        template: 'dropdown',
        showMeridian: false

    });
    
asked by anonymous 27.03.2018 / 23:42

1 answer

0

By default, the option defaultTime has its value as current which is the current time, just remove the option defaultTime: '' that the field will be filled automatically.

If you want to set a default time, just enter it:

defaultTime: '01:00 AM',

Reference

28.03.2018 / 07:26