Trigger event after slideUp or slideDown is completed
<p>I'm doing a simple slideUp animation on an object.
I want to add attribute tag to the the element after animation completes.
How can i get this to work ?</p>

<pre><code>if($(this).is(':visible')) {
  if(config.animate=='true')                    
    $(this).slideUp(options.animationTime);   //After animation ends do $(this).attr('shown','true');
  else 
    $(this).hide();             
}
</code></pre>
