<div class="col-sm-10" id="data_1">
<div class="input-group date" id="date1" data-date="<?php echo date('m/d/Y'); ?>">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text" onload="getDate()" name="start_date" id="start_date" class="form-control" value='<?php echo date(' m/d/Y '); ?>'>
</div>
</div>
在这里我给我的jQuery
var mem = $('#data_1 .input-group.date').datepicker({
todayBtn: "linked",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
startDate: '-0m',
autoclose: true
});
如果我添加以下代码,则验证无法在我的代码中进行
datepicker().$('#start_date').datepicker('setDate',new Date()) ;