find() function not working on page load in jquery
<p>I have the following jquery code to remove the style attribute of all <code>table</code>, <code>tr</code> and <code>td</code> elements located inside a <code>div</code> with <code>id="testdiv"</code>. </p>

<pre><code>$(document).ready(function(){
    $("#testdiv").find("table, tr, td").removeAttr("style");
}); 
</code></pre>

<p>If i run the <code>$("#testdiv").find("table, tr, td").removeAttr("style");</code> line in the firebug console directly it works,but its not working automatically when the page loads.
How can this problem be fixed?</p>
