$(document).ready(function(){
$('#time').timepicker({
timeFormat: 'h:mm a',
interval: 60,
minTime: '9',
maxTime: '4:00pm',
defaultTime: '9',
startTime: '9:00',
dynamic: false,
dropdown: true,
scrollbar: true,
});
});
How can I disable/remove 12pm from the selection of this jQuery timepicker?
timepicker.co
9:00am
10:00am
11:00am
1:00pm
2:00pm
3:00pm
4:00pm
2
Answers
The timepicker library you’re using doesn’t have support for disabling time.
Try this
in CSS
You can try with
disableTimeRanges
option to disable the range of 12pm to 12:01pm in jQuery Timepicker