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

后端 未结 3 1461
执笔经年
执笔经年 2020-12-11 08:21

There is

SCRIPT5009: \'$\' is undefined



        
相关标签:
3条回答
  • 2020-12-11 08:36

    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

    0 讨论(0)
  • 2020-12-11 08:49

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

    0 讨论(0)
  • 2020-12-11 08:55

    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 讨论(0)
提交回复
热议问题