伊斯兰日历的Jquery日期选择器错误

时间:2014-03-04 07:36:05

标签: javascript jquery asp.net

我收到javascript运行时错误:无法获取未定义或空引用的属性'regional'。

<head runat="server">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.calendars.js"></script> 
<script type="text/javascript" src="Scripts/jquery.calendars.plus.js"></script>
<script type="text/javascript" src="Scripts/jquery.calendars.picker.lang.js"></script>
<script type="text/javascript" src="Scripts/jquery.calendars.picker.lang.js"></script>
 <script type="text/javascript" src="Scripts/jquery.calendars.picker-ar.js"></script>
 <script type="text/javascript">
     $(function () 

     {

      $('#TextBox1').calendars.picker($.extend( { calendar: $.calendars.instance('arabic', 'ar-EG') }, $.calendars.picker.regional['ar-EG'] ));

     });
</script>

1 个答案:

答案 0 :(得分:1)

您需要为伊斯兰日历下载jquery lib。

jquery.calendars.islamic.min.js

然后像这样使用它:

 $('#TextBox1').calendarsPicker({ calendar: $.calendars.instance('islamic') });