Animate the change of height of a div when its contents change
<p>I have a <code>div#menu</code> that displays a list of information. That information changes via ajax. When it changes, I want to animate that transition from height A to height B.</p>

<p>I know I can use <code>.animate({'height': 'something')</code> but I don't know how to glue all this together.</p>

<p>I am using jQuery.</p>

<p>How can I do that?</p>

<p>Edit.</p>

<p>The ajax call looks like this:</p>

<pre><code>$.ajax({
  url: $(this).data('redraw-event-url'),
     dataType: 'script'
     }) 
</code></pre>
