标签:
地址:http://www.bootcss.com/p/bootstrap-datetimepicker/
使用方法,html:
<div class="input-append date" id="p_qixiri_time_div" data-date="2015-10-01" data-date-format="yyyy-MM-dd">
<input class="span2" size="16" type="text" id="p_qixiri_time" name="p_qixiri_time" value="2015-10-01">
<span class="add-on"><i class="icon-th"></i></span>
</div>
JS:
$(‘#p_qixiri_time_div‘).datetimepicker({
language: ‘zh-CN‘,
format: "yyyy-mm-dd",
linkField: "mirror_field",
linkFormat: "yyyy-mm-dd",
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
minView: 2,
forceParse: 0
}).on(‘changeDate‘, function(ev){
alert(ev.date);
alert($("#p_qixiri_time").val());
});
标签:
原文地址:http://www.cnblogs.com/luminji/p/4856078.html