how to access any html element through jquery when it is stored in js variable?
<p>when my html elements are stored in variable then how can i access any html element from the variable.
suppose if i need to extract or manipulate div called "dv1" or dv2. may be i may need to insert row
in table mytab. then how can i do it? please help me with sample code. </p>

<pre><code>$("#btnPrint").click(function () {
sHtml = "&lt;div id='dv1'&gt;&lt;table id='mytab'&gt;";
                sHtml += "&lt;tr&gt;&lt;td&gt;" + "&lt;img src='" + ImgPath + "' border='0'/&gt;" + "&lt;/td&gt;&lt;/tr&gt;";
                sHtml += "&lt;tr&gt;&lt;td&gt;" + $('#lblTxt').html() + "&lt;/td&gt;&lt;/tr&gt;";
                sHtml += "&lt;/table&gt;&lt;div id='dv2'&gt;my content here&lt;/div&gt;&lt;/div&gt;";                
            return false;
        });
</code></pre>

<p>thanks</p>
