How can I edit javascript time picker text editable?
$(document).ready(function () {
$("#Indexes").timepicker({'timeFormat': 'H:i:s'
});
});
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akshay PhadkePosted Jun 3, 2016, 8:24 AM
Abhilash J APosted Jun 3, 2016, 7:58 AM
Method timeFormat does not exist on jQuery.timepicker
'timeFormat': 'H:i:s',
minTime: new Date(0, 0, 0, 8, 0, 0),
maxTime: new Date(0, 0, 0, 15, 0, 0),
startHour: 6,
startTime: new Date(0, 0, 0, 8, 20, 0),
interval: 10,
});
$('#Indexes').timepicker('timeFormat', 'H:i:s');
$('#Indexes')
.timepicker('setTime', '00:00:00')
.timepicker('option', 'change', function (time) {
$('#Indexes').timepicker('option', 'minTime', time);
});
Akshay PhadkePosted Jun 3, 2016, 7:24 AM