[英]jQuery date picker showing blank textbox
我正在嘗試使用jquery datepicker。 盡管我是jQuery的新手,但我已經看過類似的實現,但是我的仍然顯示空的文本框。
我究竟做錯了什么?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testing.aspx.cs" Inherits="healthcare.testing" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-ui-1.10.4.custom.min.js"></script>
<script src="Scripts/jquery-ui-1.10.4.custom.js"></script>
<link href="Scripts/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />
<script>
$(function ()
{
$("#<%=txtdisplaydate.ClientID%>").datepicker();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtdisplaydate" runat="server" />
</div>
</form>
</body>
</html>
試試下面的代碼:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testing.aspx.cs" Inherits="healthcare.testing" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
$(function ()
{
$("#<%=txtdisplaydate.ClientID%>").datepicker();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtdisplaydate" runat="server" />
</div>
</form>
</body>
</html>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.