[jQuery] newbie question: $(this)
This is probably really obvious but here goes. I have about six items
that I want to toggle the visibility of. I've got it working on one of
them with the code below but when I add more than one the event fires
on all the items at once instead of the one I clicked. I'm guessing I
need to use the $(this) function but I haven't found anything that is
helping.
$(document).ready(function(){
$("a.bio").click(function(event){
event.preventDefault();
$("span.invisible").toggle("slow");
});
});
thanks.