title: check if div has loaded completely ajax
body: <p>I have a div called <code>#pageToLoad</code>. The page formPage.php loads a form in that div. I need to know if that page is completely load in the div. So that in case of any kind of error I can reset the form using;</p>
  
  <pre><code>$("#form").reset();
  </code></pre>
  
  <p>How can i create an event?</p>
  
  <pre><code>$("#pageToLoad").load("formPage.php");  
  </code></pre>