ಠ_ಠ
ಠ_ಠ

Reputation: 1235

bootstrap TimePicker Plugin : set full time hour/minutes/seconds

I work With bootstrap Timepicker Plugin and Need to set full time (H:i:s).

on initialization timepicker Work Only With this Format 11:42 PM/AM:

$('someSelector').timepicker('setTime': '11:42 PM');

But My Time Is : 12:12:12 And This Not work With timepicker.

How do fix this ?!

I Found :

Using : defaultValue: '12:45:30' and showSeconds: true This Worked Perfectly.

 $('#timepicker2').timepicker({disableFocus: true,showInputs: false,showSeconds: true,showMeridian: false,defaultValue: '12:45:30'});

Upvotes: 4

Views: 8195

Answers (1)

ಠ_ಠ
ಠ_ಠ

Reputation: 1235

I Found :

Using : defaultValue: '12:45:30' and showSeconds: true This Worked Perfectly.

 $('#timepicker2').timepicker(
    {
     disableFocus: true,
     showInputs: false,
     showSeconds: true,
     showMeridian: false,
     defaultValue: '12:45:30'
     }
 );

Upvotes: 1

Related Questions