How to set time in bootstrap timepicker

Asked

Viewed 1,204 times

1

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

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

    });
  • You want a dynamic time?

1 answer

2


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

If you want to set a standard time, just enter the same:

defaultTime: '01:00 AM',

Reference

Browser other questions tagged

You are not signed in. Login or sign up in order to post.