<p>I have this line of JavaScript and the behavior I am seeing is that the <code>selectedLi</code> instantly disappears without "sliding up".  This is not the behavior that I expected.</p>

<p>What should I be doing so that the <code>selectedLi</code> slides up before it is removed?</p>

<pre><code>selectedLi.slideUp("normal").remove();
</code></pre>

Might be able to fix it by putting the call to remove in a callback arg to slideUp?
e.g
```
```
selectedLi.slideUp("normal", function() { $(this).remove(); } );
```
```