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.
Hide the target div load the new page into the div open up the div again
This works if I place the initial slideToggle on its own but I want to make sure the page is loaded before opening again
function nickyLoad(siteToFetch,whereToPut){
$('#'+whereToPut+'').slideToggle('slow', function() {// collapse target
$('#'+whereToPut+'').load(siteToFetch, function() { //load new site
$('#'+whereToPut+'').slideToggle('slow','');
});
)};
}
Many thanks!