I am using Time Picker of AdminLTE , how can I limit user to pick AM or PM only in time picker. When clicking time picker in AM, PM must not be show
In Addition here's the code:
View:
<div class="bootstrap-timepicker">
<div class="form-group">
<label>FROM</label>
<div class="input-group">
<input type="text" class="form-control timepicker">
</div>
</div>
</div>
Script
$( document ).ready(function() {
$(".timepicker").timepicker({
showInputs: false
});
});
ok so just hide the buttons
.bootstrap-timepicker-widget table tr:nth-child(3)>td:last-child a {
display: none;
}
.bootstrap-timepicker-widget table tr:nth-child(1)>td:last-child a {
display: none;
}