[jQuery] Question Animating and Removing Elements

[jQuery] Question Animating and Removing Elements


Hi,
I have a scenario where the user can click a delete button to remove a
dynamic element from the page. Whent he button is clicked I want the
element to slide up and then be removed from the DOM. I can't make
this work however. I can either slide it up or remove it. Can anyone
tell me how to force the remove function to wait until the animation
is complete?
Thanks,
Stephen