help with a simple test
help with a simple test
I am trying to learn this jquery stuff. So i thought i would start with a simple test. I have tried many variations and cannot get it to work
I have downloaded the library version jquery-1.2.6.js and I am trying a simple slidedown for one link but when i run the page, nothing happens. I do not get any errors. this is the version I currently am trying. can you explain what I am doing wrong?
-
<html>
<head>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".a").click(function(){
$("#link").slideDown("slow");
});
});
</script>
<style type="text/css" >
#link
{
width:150px;
height:200px;
}
</style>
</head>
<body>
<div id="link">
<a class="a" href="#">test</a>
</div>
</body>
</html>