我用jQuery日期時間選擇器和按鈕圖像。它沒有顯示,而不是工作....jquery日期時間選擇器不工作
這是ascx.cs文件:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ExclusionSwipeCardRequest.ascx.cs" Inherits="ExclusionSwipeCardRequest" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<link href="../App_Themes/LMSTheme/Style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Scripts/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function() {
$("#<%=txtFromDate.ClientID%>").datepicker({
showOn: "button",
buttonImage: "Images/clock_add.png",
buttonImageOnly: true
});
});
</script>
文本框:
<td>
<asp:TextBox ID="txtFromDate" MaxLength="10" runat="server" ToolTip="Enter From Date"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVIssueDate" runat="server" ControlToValidate="txtFromDate" ErrorMessage="*" ValidationGroup="Enter">
</asp:RequiredFieldValidator>
</td>
是否有某種錯誤信息? –