two nested functions in jquery?
<p>I'm not sure if this is actually possible but I would have thought it is. I am very new to jquery. What I am trying to do is nest two functions.</p>

<p>Hide the target div
load the new page into the div
open up the div again</p>

<p>This works if I place the initial slideToggle on its own but I want to make sure the page is loaded before opening again</p>

<pre><code>function nickyLoad(siteToFetch,whereToPut){
$('#'+whereToPut+'').slideToggle('slow', function() {// collapse target
    $('#'+whereToPut+'').load(siteToFetch, function() { //load new site
        $('#'+whereToPut+'').slideToggle('slow','');
    });
)};
</code></pre>

<p>}</p>

<p>Many thanks!</p>
