Build elements in jQuery and add to dom
<p>I am trying to build a ul list in jQuery, however it seems to be only creating the ul element, and not the li??</p>

<pre><code>var list = $('&lt;ul&gt;&lt;/ul&gt;').append($("&lt;li/&gt;").addClass('test').text('hello'));
</code></pre>

<p>Seems simple enough, but not sure why it won't work??</p>
