我有以下代码,允许从日历中选择日期。 如何让它无法从过去的日期中选择日期?
echo form_label(lang("arrival_date"), 'tdata');
?>
<div class="input-group date form_date col-md-5" data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
<input name="tdata" id="tdata" class="form-control" size="16" type="text" value="<?php echo set_value('tdata') === null ? set_value('tdata') : isset($this->session->userdata['step_1']['tdata']) ? $this->session->userdata['step_1']['tdata'] : set_value('tdata'); ?>" readonly>
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
</div>
<input type="hidden" id="dtp_input2" value="" />