Tutorials:How jQuery Works - Special Effects
hi,
I've been discovering jquery today and my question is pretty basic.. It concerns the introduction example on the effcts possible with jquery : url
It doesn't work. Why ?
my page:
author.html.php
- <script type="text/javascript" src="jquery.js">
</script>
<script type="text/javascript">
$("a").click(function(event){
event.preventDefault();
$(this).hide("slow");
});
- <a href=""><?php echo "[".$message['ts']."] From: " . $message['authorname'] . " - " . $message['title']; ?></a><br />
I'm just following what the introduction says (I think) so am I wrong ?
this code :
$(document).ready(function(){
$("a").click(function(event){
alert("As you can see, the link no longer took you to jquery.com");
event.preventDefault();
}); });
works just fine but that's a code above the effect one. I just don't get it.
My current System: Win XP/FF 3.6.2/jquery 1.4.2/Apache2.2.14/Localhost
If anyone can help me out thanks guys.