Jquery 日期选择器未在IE9中显示

Jquery 日期选择器未在IE9中显示,jquery,internet-explorer,datepicker,internet-explorer-9,Jquery,Internet Explorer,Datepicker,Internet Explorer 9,客户希望为其公司创建一个内部表单,并使用IE9。问题是日期选择器没有出现在IE9中。我得到的唯一东西是datepicker UI的顶部(高度约为5px) 截图: 代码片段: <script type="text/javascript"> $(function() { $('input.datepicker').datepicker({ dateFormat: 'dd-mm-yy', changeMonth: true, changeYea

客户希望为其公司创建一个内部表单,并使用IE9。问题是日期选择器没有出现在IE9中。我得到的唯一东西是datepicker UI的顶部(高度约为5px)

截图:

代码片段:

<script type="text/javascript">
    $(function() { 
    $('input.datepicker').datepicker({
    dateFormat: 'dd-mm-yy',
    changeMonth: true, 
    changeYear: true,
    showOn: 'focus',
    beforeShowDay: function(date)
    { return [(date.getDay() == 2 || date.getDay() == 4), ""]; }
    },
    $.datepicker.regional['nl']);
    });
</script>

$(函数(){
$('input.datepicker').datepicker({
日期格式:“dd-mm-yy”,
变化月:对,
变化年:是的,
showOn:“聚焦”,
beforeShowDay:功能(日期)
{return[(date.getDay()==2 | | date.getDay()==4),“”]}
},
$.datepicker.regional['nl']);
});

  • 基准面
  • 有人知道为什么datepicker用户界面没有出现吗

    亲切问候。

    包括在你的资料中。这个错误正在发生

    编辑:

    添加适当的依赖项:

    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
    
    
    
    删除:

    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/themes/base/jquery-ui.css"/>
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    
    
    
    您可以发布完整的代码吗?可以在jsfiddle.net上发布吗?是否包含jquery ui css资产?是否尝试在其他浏览器中调试此资产??您在JSFIDLE中的代码,您发布的代码没有相同的错误,您可以尝试在JSFIDLE.net上重新创建问题吗?@MarkSherretta index.php:和js/control.js:@mdmullinax刚刚发布了2个源代码。
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/themes/base/jquery-ui.css"/>
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.datepicker.js" type="text/javascript"></script>