我正在使用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