Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Animate div onclick other div Re: Animate div onclick other div

#138663
Anonymous
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