开发者

jQuery 1.6.1 , IE9 and SCRIPT5009: '$' is undefined

There is

SCRIPT5009: '$' is undefined

<script type="text/javascript" src="开发者_运维问答xxx_files/jquery.js"></script>
<script type="text/javascript" src="xxx_files/jquery_002.js"></script>
<script type="text/javascript" src="xxx_files/ticker.js"></script>
<script type="text/javascript" src="xxx_files/config.js"></script>
<script type="text/javascript" src="xxx_files/ajax.js"></script>
<script type="text/javascript" src="xxx_files/lite.js"></script> 
<script type="text/javascript" src="xxx_files/jquery.pagination.js"> </script>
<script type="text/javascript">
$(document).ready(function(){
    $('#slide').pajinate({
          num_page_links_to_display : 0,
       items_per_page : 4
    });
 });
 </script>

with jQuery 1.6.1 in IE9 . Why '$' is undefined in ie9 ?

Thanks in advance


Do you have another script using jQuery before jQuery is referenced?


FOR BEGINNERS:

add this code to your file:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>

It'll grab the jQuery file from google cdn (according to http://www.w3schools.com/jquery/jquery_intro.asp) I was having this problem


This issue is because there is no reference in the page for jquery...Pleaes ensure that the below js reference or above jquery-1.5.1.min.js is added as reference

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜