When the second time of the bootstrap set the date selection box

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/sgl520lxl/article/details/82802397

js part of the code:

<script>
	$(document).ready(function () {

                $(".form_datetime").datetimepicker({
                format: "yyyy-mm-dd hh:ii:ss",
                linkField: "mirror_field",
                linkFormat: "yyyy-mm-dd hh:ii"
                });

	});

</script>
<div style="float: left;line-height: 30px;color: red;">活动开始时间:</div>
<div class="input-append date form_datetime" style="float: left; padding-right:20px">
	<input id = "startTime" name="startTime" size="16"type="text" value="${obj.startTimeStr}" readonly>
	<span class="add-on"><i class="icon-remove"></i></span>
	<span class="add-on"><i class="icon-th"></i></span>
</div>

The effect is as:

Guess you like

Origin blog.csdn.net/sgl520lxl/article/details/82802397