problem with Jquery equivalent to javascript createElement
<p>I'm trying to recreate the following code with jQuery:</p>

<pre><code>        var node = document.createElement("div");
        node.innerHTML = "DynaColumn";
        node.className = "ui-state-default ui-corner-all";

        return node;
</code></pre>

<p>this is the code I'm trying to get to work:</p>

<pre><code>return $("&lt;div class='ui-state-default ui-corner-all'&gt;DynaColumn&lt;/div&gt;");
</code></pre>

<p>The first seems to work fine. I'm not sure why the second isn't working:</p>

<p>The object that will be using this return value is calling it as so: </p>

<pre><code>something.appendChild(theNode);
</code></pre>
