Skip to content

Instantly share code, notes, and snippets.

@skoon
Forked from buzzedword/gist:627318
Created October 15, 2010 00:17
Show Gist options
  • Save skoon/627334 to your computer and use it in GitHub Desktop.
Save skoon/627334 to your computer and use it in GitHub Desktop.
jQuery.fn.aspHide = function() {
$(this).each(function() {
var elem = $(this);
elem.data('height', elem.height());
elem.height('0');
elem.css('visibility', 'hidden');
});
};
jQuery.fn.aspShow = function() {
$(this).each(function() {
var elem = $(this);
elem.height(elem.data('height'));
elem.css('visibility', 'visible');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment