Skip to content

Instantly share code, notes, and snippets.

@rdallaire
Created December 11, 2012 18:57
Show Gist options
  • Save rdallaire/4261034 to your computer and use it in GitHub Desktop.
Save rdallaire/4261034 to your computer and use it in GitHub Desktop.
Quick Cart Drop with jquery On
$('#top-info').on('click', '#cart-preview', function() {
if ($('#cart').hasClass('activated')) {
$('#cart').stop().removeClass('activated').slideUp('fast');
} else {
$('#cart').stop().addClass('activated').slideDown('fast');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment