Can I bind an event to the `remove()` method?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2200494/jquery-trigger-event-when-an-element-is-removed-from-the-dom">jQuery - Trigger event when an element is removed from the DOM</a>  </p>
</blockquote>



<p>What I want to do is run a particular section of code when a certain element is <code>remove()</code>d from the page using jquery.</p>

<p>Is there any way to attach an event listener onto removal of elements at all?</p>

<p>I ask because I am refactoring some code and there are a lot of places where this particular element is <code>remove()</code>d and it would be much easier (and useful) if I could just attach a function to an event call (if there is one?).</p>

<p>Thanks</p>
