[jQuery] $this and Hover Method...
I'm pretty new to jQuery and I get pretty lost when using the $this
variable. I've seen people use it in so many different ways-- ($this, $
(this), $.this, $.(this), etc-- to where I don't know which way is the
correct way to use it. Anyways, can somebody look at the following
code and tell me what I'm doing wrong? I have a feeling it has to do
with the way I'm using the $this variable...
$("#rightDiv").hover(
function()
{
$(this).css({visibility: 'visible';});
},
function()
{
$(this).css({visibility: 'hidden';});
}
);