JQuery code does not work not understanding the markup
Posted
by
Andrae Browne
on Stack Overflow
See other posts from Stack Overflow
or by Andrae Browne
Published on 2012-12-14T23:02:07Z
Indexed on
2012/12/14
23:03 UTC
Read the original article
Hit count: 160
I am trying to make a simple animation using JQuery. I have tried adding the script externally(external file) and internally(within script tags). I have testing if the page is recognizing the script using the alert function, but the script is not executing. I am thinking that is has something to do with the syntax.
$("#container5").hover(function() {
//hover in
$(#container5).animate({
height: "250",
width: "250",
left: "-=50",
top: "-=50",
}, "fast");
}, function() {
//hover out
$(#container5).animate({
height: "200",
width: "200",
left: "+=50",
top: "+=50",
}, "fast");
}
})(jQuery);
© Stack Overflow or respective owner