Skip to content

Instantly share code, notes, and snippets.

@rogierborst
Last active April 8, 2023 19:56
Show Gist options
  • Save rogierborst/5591024 to your computer and use it in GitHub Desktop.
Save rogierborst/5591024 to your computer and use it in GitHub Desktop.
Make table rows slideUp with jQuery
$('tr').children('td')
.animate({'padding-top' : 0, 'padding-bottom' : 0}) // first remove vertical padding
.wrapInner('<div />') // wrap contents in divs, because THOSE can be animated
.children()
.slideUp(function(){
$(this).closest('tr').remove();
});
@Dakarator
Copy link

Thank u!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment