I can .animate Up but not down
I have a div where the title shows. When you click the title it slides up to display the div. I would also like it so that when you click the title while it's open, it slides down but havn't figured out how to get both .animate functions to work using the same button. I would like an if open, then close but not sure how to pull it off.
Here's my script.
$(document).ready(function(){
// Using multiple unit types within one animation.
$("#go").click(function(){
$("#res").animate({
top: "655px",
}, 1500 );
});
});