[jQuery] My first jQuery
[jQuery] My first jQuery
I'm trying my first simple jQuery task, a mouseover event to display a
box with some text.
$("p.sec-ia").addClass("unhide").show("slow");
works fine but when I add the mouseover
$("#section1").hover(function(){
$("p.sec-ia").addClass("unhide").show("slow");
},function(){
$("p.sec-ia").removeClass("unhide");
});
it doesn't do anything. I don't know if it's because my p.sec-ia isn't
in the #section1. Can anyone give me a clue, please? Thanks.