林相当新的这个jQuery选择器数据,请包涵...... 我使用教程@http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html 允许用户从日历中选择日期,我似乎没有工作
但是不能得到它的工作可能会有人请告知,如果我要对这个错误的方式...
“jquery.datePicker.js & datePicker.css”可以在靠近页面顶部的下载... http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html
- 拷贝到我的标签中的“•jquery.datePicker.js”的代码在我看来
- 复制datePicker.css代码到我的CSS文件
以下内容粘贴到我的视图页面的顶部:
<!-- jQuery --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <!-- required plugins --> <script type="text/javascript" src="scripts/date.js"></script> <!--[if IE]><script type="text/javascript" src="scripts/jquery.bgiframe.js"></script><![endif]--> <!-- jquery.datePicker.js --> <script type="text/javascript" src="scripts/jquery.datePicker.js"></script>
这不工作... IV试着做第一个演示,并与
$(function()
{
$('.date-pick').datePicker();
});
and then adding the following to .css
/* located in demo.css and creates a little calendar icon
* instead of a text link for "Choose date"
*/
a.dp-choose-date {
float: left;
width: 16px;
height: 16px;
padding: 0;
margin: 5px 3px 0;
display: block;
text-indent: -2000px;
overflow: hidden;
background: url(calendar.png) no-repeat;
}
a.dp-choose-date.dp-disabled {
background-position: 0 -20px;
cursor: default;
}
/* makes the input field shorter once the date picker code
* has run (to allow space for the calendar icon
*/
input.dp-applied {
width: 140px;
float: left;
}
replacting我
<script>
标签内的数据名为.js
有人可以告诉我我做错了什么吗?
感谢您的回复伊姆兰,我本来有datepicker工作,我用jquery历法。我试图让日历让我选择多个日期似乎是问题,你的演示只允许用户选择一个日期?请告知 – John
您需要根据此更改代码,您可以选择多个日期。检查演示。 HTTP://www.kelvinluck。com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html –
嗨伊姆兰,得到它与下面的代码发布, 然后添加在您提供的链接中的代码,这使我可以选择尽可能多的日期想要,但我不能选择一个日期....你知道这是为什么,或者也许可以提供如何解决这个问题的信息? – John