jquery - slideDown a div with anchor click then go to link -
i want have jquery div slide down on click of anchor tag, working want animate first , visit clicked link. 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; }); });
Comments
Post a Comment