I want the jquery div to slide down on click of the anchor tag, which works, but I want it to animate first and then click on the clicked link. Is it possible?
$('#portfolio').click(function() { $('#bodyG').slideUp('fast'); });
$('#portfolio').click(function(e){ e.preventDefault(); var href = $(this).attr('href'); $('#bodyG').slideUp('fast', function() { window.location = href; }); });