我正在使用 AdminLTE 的时间选择器,如何限制用户仅在时间选择器中选择上午或下午。在上午点击时间选择器时,不得显示下午
此外还有代码:
查看:
<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>
脚本
$( document ).ready(function() {
$(".timepicker").timepicker({
showInputs: false
});
});
最佳答案
好的,所以只需隐藏按钮
.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;
}
关于css - 如何在时间选择器 Bootstrap 中删除 AM 或 PM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51240760/