jquery datetimepicker trentrichardson - 简单但我不明白
有人可以告诉我我在这里做错了什么以及为什么这个简单的日期时间选择器不会出现吗?我是一个 jquery 新手,已经感到沮丧了:)
<head runat="server">
<title>IT Support Tools - Log Viewer</title>
<script src="Scripts/jquery-1.6.2.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
alert("hello");
$('#<%=txtStartDate.ClientID%>').datetimepicker();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
Can someone please tell me what I am doing wrong here and why this simple datetimepicker will not come up? I am a jquery newb and getting frustrated already :)
<head runat="server">
<title>IT Support Tools - Log Viewer</title>
<script src="Scripts/jquery-1.6.2.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<link href="Styles/Site.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
alert("hello");
$('#<%=txtStartDate.ClientID%>').datetimepicker();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你必须链接 jQueryUI,该插件是基于它的。您从中获取它的网站提到了这一点。放在
您已有的两个
标记之间。
You have to link jQueryUI, that plugin is based on it. The site you grabbed it from mentions that. Put
Between the two
<script>
tags you already have.