If I have a div that I clear the contents of, but then want to put something new in it's place, how can I string these functions so that one only fires after the previous one completes

```
$('#nner_container').fadeOut(300, function(){

    $('#header_div').after('<div id="inner_container" style="dispay:none"></div>');
       //when this insertion of inner_container completes, fill it with some content
       //and when that completes, fadeIn inner_container

});

```

most jquery functions seem to take additional functions as a final parameter, which I thought was used for exactly this purpose. But not so with `after()`. Or am I doing something incorrect.

Thanks