Jay Jay - 5 months ago 27
jQuery Question

jQuery Timepicker time field format

I am using jQuery Timepicker here, now in my time textbox, I get time as

HH:MM:SS
format, but i want it in
HH:MM
format.

I have tried various
timeformat
in default initialization, setting
showsecond
as false but nothing seems to work.

Answer

Are you using jQuery >= 1.7?

There is no option showsecond in the documentation at GitHub

Did you try:

$('#timeformatExample1').timepicker({ 'timeFormat': 'H:i' });