want to extract html and height & width of div
<p>my code is here which is not returning the result i want</p>

<pre><code>var content = "&lt;div id='content_dv'&gt;";
         content += "&lt;table border='1' style='height:auto;width:auto;'&gt;";
         content += "&lt;tr&gt;";
         content += "&lt;td&gt;";
         content += "This is row 1";
         content += "&lt;/td&gt;";
         content += "&lt;/tr&gt;";
         content += "&lt;tr&gt;";
         content += "&lt;td&gt;";
         content += "This is row 2";
         content += "&lt;/td&gt;";
         content += "&lt;/tr&gt;";
         content += "&lt;tr&gt;";
         content += "&lt;td&gt;";
         content += "This is row 3";
         content += "&lt;/td&gt;";
         content += "&lt;/tr&gt;";
         content += "&lt;/table&gt;";
         content += "&lt;/div&gt;";

         alert($(content).find('#content_dv').html());
         alert("height "+$(content).find('#content_dv').height());
         alert("width " + $(content).find('#content_dv').width());
</code></pre>

<p>my content variable has some html and i want to show the data with in div id called "content_dv" and also i need to determine the height &amp; width of the div and height &amp; width of inner html of div.</p>

<p>so please help me why my code is not working. what wrong in my code. thanks</p>
