I am struggling to make datepicker work.
我添加了所有脚本,但单击文本框时仍然看不到日期选择器。如果我错了,请纠正我。我的代码:
//<![CDATA[
$(document).ready(function () {
$('#datePicker').datetimepicker({
});
});
$(function () {
$('#EndDate').datetimepicker({
duration: '',
dateFormat: 'dd/mm/yy',
showTime: true,
constrainInput: false
});
});
//]]>
我的html:
<p>
Date:
<input type="text" id="datePicker" />
</p>
<p>
<%= Html.Label("EndDate","EndDate:")%>
<%= Html.TextBox("EndDate") %>
<%= Html.ValidationMessage("EndDate","*")%>
</p>