I am using the following code to open and close a div ( slide up/down ) using js
I have the slide down event attached to a button and the slide up event sttached to
You can just use slideToggle() in the click function:
$('.grabPromo').click(function(e){ $('.slideDown').slideToggle(); });
Here's a demo.