开发者

what this query has error?

i wrote this code:

<script type="text/javascript" src ="../Scripts/jquery-1.4.1.min.js"> </script>
 开发者_C百科  <script type = "text/javascript">
      $(document).ready(function(){

    $("#btnhide").click(function(event){
    $("a").slideUp(1000);
    });
    });
</script>

but it has following error.

Edit: i sure that jquery is loaded successfully.



 Error: $ is not defined
    Source File: http://localhost:1416/my362/ControlPanel.aspx
    Line: 36

what is problem?

Edit: i sure that jquery is loaded successfully.


you forgot to include jquery

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> 


jquery isn't loaded, check ../Scripts/jquery-1.4.1.min.js if is correct

try to replace $ with jQuery in your code to be sure.


Make sure that the link to the jquery-1.4.1.min.js is correct. You get that error when the JQuery is not found.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜