I'm having trouble with the following code. I'm trying to remove a specific row from a table using jQuery, but I'd like to use the slideUp effect so the row slides up and then removes itself. I've tried the following, but it does not seem to respect the effect. It just removes itself.
$('[data-company-id='+companyId+']').closest('tr').slideUp('fast', function() { $(this).remove(); });
My table row contains a button in one of the cells with a data-company-id attribute. This does work in getting the right cell, and corresponding parent and remove it. But it does not slide Up before the remove.
What am I doing wrong?