我正在使用ASP.NET来开发一个网站,我将在我的网站中使用jQuery datepicker。我使用下面的代码,但它不会工作。有谁知道为什么?jQuery datepicker不能在ASP.NET页面工作
<link href="css/calendar/jquery-ui-1.8.7.custom.css" rel="stylesheet" type="text/css" />
<script src="jquery/calendar/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="jquery/calendar/jquery-ui-1.8.7.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#txtEventDate").datepicker();
});
</script>
这里是我的文本框HTML代码:
<asp:TextBox ID="txtEventDate" runat="server" Width="125px"></asp:TextBox>
类选择器对我来说不起作用,其他2个却没有。 +1 – 2015-12-07 16:28:38