Hello I'm working to slide a DIV to the left (off the page). ...
I have the following which works:
$('.mybigbox').live('click', function() {
leftDistance = $(this).attr('name'); // set px so I know how far
$lefty.animate({left:leftDistance}) // Makes the slide
});
What what I want to happen, is on the first click it animates with the above, but on the next click it returns to default. (kind of like a toggle, on off button.
Ideas? thank you