因为业务需求,只能选择不能输入。
html:
<input type="text" name="end_time" placeholder="结束时间" class="layui-input" id="end_time" onfocus="this.type='text'" autocomplete="off" style="display:inline-block;width:250px;" readonly >
js:
laydate.render({
elem: '#end_time', //指定元素
type: 'date',
trigger: 'click',
min: '<?php echo date('Y-m-d',strtotime('+1 day'));?>',//最小起始时间
});