Home › Forums › Other › Animate div onclick other div › Re: Animate div onclick other div
June 13, 2013 at 8:58 pm
#138663
Inactive
If i understand what you mean this should help.
$(“#div being clicked”).click(function() {
$(“#div being animated”).animate({“left”:”200px”});
});
Add the ID of the div that is being clicked to start the animation where it says “#div being clicked”. and for the div that is being animated on the second selector. and the change the properties after the .animate between the parenthesis, it works similar to css