tags:

views:

84

answers:

0

Hi,

I am using jQuery's load function to render some of my content when the document is ready.

$(document).ready(function(){
   $('#header').load('header.html',function() {
      //do call back function});
   $('#footer').load('footer.html');
});

I don't want my callback function to execute when the request completes, but rather when the loaded content (or dom?) is ready to be manipulated. How can I do this?

Thanks