jQuery object to string help please
<p>I am creating a jquery object like so:</p>

<pre><code> htmlCode = $("&lt;div id='"+data.layoutDescriptions[i].id+"'&gt;&lt;/div");
</code></pre>

<p>It seems to be missing some elements mainly when I am doing this:</p>

<pre><code>if(data.type == "ListView"){

    htmlCode.append("&lt;SELECT property='"+ data.property +"' size="+ data.listProps.length +" multiple&gt;");
    i = 0;
    while(i &lt; data.listProps.length){

        htmlCode.append("&lt;OPTION value='"+ i+1 +"'&gt;"+ data.listProps[i] +"&lt;/OPTION&gt;");
        i++;
    }
    htmlCode.append("&lt;/SELECT&gt;");

} 
</code></pre>

<p>where data is a Json object.</p>

<p>When i do this as a string it works. e.g.
instead of </p>

<pre><code>htmlCode.append("&lt;OPTION value='"+ i+1 +"'&gt;"+ data.listProps[i] +"&lt;/OPTION&gt;");
</code></pre>

<p>i would do</p>

<pre><code>htmlCode = htmlCode + "&lt;OPTION value='"+ i+1 +"'&gt;"+ data.listProps[i] +"&lt;/OPTION&gt;";
</code></pre>

<p>I want to find out what is missing so I want to see the Object
i have tried the following:</p>

<pre><code>alert(JQuery.htmlCode.stringify());

alert(htmlCode.html);
</code></pre>

<p>Nether work.</p>

<p>Any Ideas??</p>

<p>Thanks.</p>
