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.
精彩评论