0

Hi,

I am using timepicker. Onclick of textbox, timepicker open up with time mentioning 12am by default.
but when I click on ok 12.00 am doesn't comes up in the textbox.
The only way it comes up is when I slide it to certain time and back to 12.00 am.
Is there anyway to do this?

2
Contributors
10
Replies
41
Views
4 Years
Discussion Span
Last Post by pixelsoul
0

here it is

<input class="time_slider" id="starttime" name="starttime" type="text" size="50" />

$('.time_slider').timepicker({
        hourGrid: 4,
        minuteGrid: 10,
        timeFormat: 'hh:mm tt'
  });
0

The problem is when you click in textbox, timepicker comes up and is displayed as
Time
12:00 am
Hour
<slider>
Minute
<slider>

when I click on done why it doesn't displays 12:00 am in the textbox as hour slider in pointing to 12:00 am

0

I have added this and solved

$('.time_slider').timepicker({
        hourGrid: 4,
        minuteGrid: 10,
        defaultValue: "12:00 am",
        timeFormat: 'hh:mm tt'
});
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.