catcher
catcher

Reputation: 97

timepicker adjust minute step

I used http://jonthornton.github.com/jquery-timepicker/ timepicker. ITs half hour by half hour. I want to make a timepicker by 1 minute. I write script in my php file. But nothing happened.

Here is my script code:

$(function() {
        $('#xyz').timepicker({ 
        'timeFormat': 'H:i',
        defaultTime: 'current',
        minuteStep: 1,
        disableFocus: true,
        template: 'dropdown'});

        });

What should I do?

Upvotes: 3

Views: 3156

Answers (1)

user7166362
user7166362

Reputation:

$(function() {
    $('#xyz').timepicker({ 
    'timeFormat': 'H:i',
    defaultTime: 'current',
    step: 1,
    disableFocus: true,
    template: 'dropdown'});

    });

Upvotes: 2

Related Questions