cannot copy a Jquery object into a Jquery object
<p>Hi I am trying to insert a JQuery object inside another by doing the following:</p>

<pre><code>var htmlCode = $("&lt;div id='"+data.layoutDescriptions[i].id+"'&gt;&lt;/div");          
if(data.contentRef == "RecursiveContactSubForm"){
        if(htmlArray[2]){
            alert("in here");
        htmlCode.append(htmlArray[2]);
        }
        else{
            alert("in here2");
            var tmp = htmlCode;
            htmlCode.append(tmp);
        }
    }
</code></pre>

<p>I don't understand why this doesn't work.</p>

<p>any ideas? </p>

<p>Thanks.</p>
