null is null or not an object javascript error
<p>I have a div which has flash(Open flash chart) inside it . When  I try to remove child divs with <code>$("#mydiv").children().remove()</code> it shows a javascript error in IE 8:</p>

<blockquote>
  <p>null is null or not an object javascript error</p>
</blockquote>

<p>If the same div when there is no flash works fine without any issue .</p>

<p>Any suggestion on how to fix this ?</p>
