catcher catcher - 23 days ago 7
Javascript Question

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?

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

    });