需要一个日期选择器,起始日期和结束日期,用的是bootstrap-datepicker的date-
range,代码:
<div class="input-group input-daterange">
<input type="text" class="form-control" value="2012-04-05">
<span class="input-group-addon">to</span>
<input type="text" class="form-control" value="2012-04-19">
</div>
文档里没有怎么得到日期值,但是有这么一段:
Note that that input-daterange itself does not implement the datepicker
methods. Methods should be directly called to the inputs. For example:
$('.input-daterange input').each(function() {
$(this).datepicker("clearDates");
});
datapicker有一个getDate的方法,请问怎么得到开始日期和结束日期?
--
FROM 72.224.131.*