javascript - toggling jquery animation getting error -
I'm trying to animate / expand a layer by clicking on the "Layer" button, and then, the layer Within, there is a button to hide it in 0.
$ (". Showcart"). Click (function () {$ ("# cart"). ({Height: "400px"}); $ (". Showcart") Toggle ();}); $ ("Hidecart"). Click (function () {$ ("# cart"). Animate ({height: "0px"}}}};});
Not sure where the problem is, any thoughts?
Wrap your code inside DOM Ready Events ...
< Code ($ (function () {$ (". Showcart"). (Function () {$ ("# cart"). Atom ({height: "400px"}) $ ("Showcart") Toggle ();}); $ (". Hidecart") (function () {$ ("# cart"). {Height: "0 pixels"});});});
Comments
Post a Comment