Hey folks
I was wondering if there is a jquery guru here who can tell me why this div won't disappear! I am just barely learning jquery and this is a ridiculously simple piece of code but the sucker wont work.
Code: ags
thanks in advance
Edit: here is a link if needed http://jquery-tests.twomindeddesign.com
I was wondering if there is a jquery guru here who can tell me why this div won't disappear! I am just barely learning jquery and this is a ridiculously simple piece of code but the sucker wont work.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Jquery Experiments</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="jquery-1.6.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$('a').click(function() {
$('#box').fadeout();
});
});
</script>
</head>
<body>
<div id="box"></div>
<a href="#">Fade out the box</a>
</body>
</html>
thanks in advance
Edit: here is a link if needed http://jquery-tests.twomindeddesign.com