I want table rows to disappear (by animating their height to 0px and opacity to 0). I'm using the following
$('#somecellelement').closest('tr').children('td').css('overflow','hidden');
$('#somecellelement').closest('tr').children('td').animate({
height: '0px',
opacity: 0
},500);
Where #somecellelement
is something contained in cells of rows I want hidden. Opacity
is animating correctly but the table row doesn't get smaller. If I set height: 500px
then it works, but I need the row to disappear.
I cannot remove the element from DOM, though, due to scripts expecting values from form elements in those rows.