title: Check if contents of a DIV is only an Image
body: <p>I have a div containing initially a loader image tag.</p>
  
  <pre><code>  &lt;img src="/images/indicator_big.gif" style="display:block;margin:auto"&gt;
  </code></pre>
  
  <p>I want to check if the DIV contains only the loader image then the function should trigger an Ajax Request.</p>
  
  <p>If i do some thing like <code>div.innerHTML</code> I get it as a string.</p>
  
  <p>What will be the best way to test if the innerHTML is only a loader image?</p>