Run a method after the other method finished in JQUERY
<p>I have a hide method.  What I want is, after this hide method finishes, then the other method will run. How can I do that in Jquery ?</p>

<p>For example</p>

<pre><code>$('.panel').hide(400);

$('.panel2').fadeIn(400);
</code></pre>

<p>I want to run second line after the first one finished.</p>

<p>Thanks in advance,</p>
