tai
tai

Reputation: 39

jquery TimePicker interval

I am having the hardest time trying to figure out how to get the drop down intervals of time picker to set to 15min intervals. Its defaulted to 30mins atm. What is the proper call/notation to get it to work? I've tried many variations of putting them in '' and without but no progress. Thanks!

   $(str).timepicker({
        'interval': '15',
        'timeFormat': 'g:ia',
        //stepMinute: 15
    });

Upvotes: 1

Views: 7000

Answers (1)

Britni
Britni

Reputation: 364

step is what you are looking for:

$(str).timepicker({
     'step': '15'
});

Upvotes: 6

Related Questions