jQuery dataPicker中的问题 [英] problem in jquery dataPicker
问题描述
从日期选择器中选择日期时出现以下错误
I am getting the following error while choosing date from date picker
Microsoft JScript运行时错误: 'length'为空或不是对象
Microsoft JScript runtime error: 'length' is null or not an object
在某行的循环中,它在WebResource.axd文件中给出了错误,
It gives error in WebResource.axd file at line, at some loop that says,
for(i=0;i<vals.length;i++)
{
alidatorvalidate(vals,null,length);
}
我在页面中包含了以下脚本
I have included the following scripts to my page
- jquery-1.6.1.min.js
- jquery-datePicker.js
- jquery-ui-1.8.13.custom.css
- jquery-ui-1.8.13.custom.min.js
- jquery.datePicker.min-2.1.2.js`
可能出什么问题了?我对jquery不太了解 这一切令人困惑.我能知道如何实现jquery datepicker吗?
what could be wrong? i have not much idea about jquery its all going confusing.can i have idea how to implement jquery datepicker?
推荐答案
Heena,您在使用jquery-ui
时不需要jquery-datePicker.js
和jquery.datePicker.min-2.1.2.js
.
Heena you don't need jquery-datePicker.js
and jquery.datePicker.min-2.1.2.js
as you are using jquery-ui
.
尝试一下.假设您有一个这样的文本框.
Try this. Suppose you have a textbox like this.
<input type="text" id="mypicker" />
使用此脚本
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript" src="">
$(function() {
$( "#mypicker" ).datepicker();
});
</script>
这篇关于jQuery dataPicker中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!