create elements and set attributes inside each other with jquery?
<p>Answer found :D</p>

<p>I'm new with jQuery and I know there are some really nice quick tricks do doing stuff so.. I know how to answer this question in JavaScript in 30 lines of code. </p>

<p>Current code:</p>

<pre><code>$('&lt;li&gt;, &lt;a&gt;', {
    id: '#tab-' + count
}).html($(this).text()).appendTo('#uls');
</code></pre>

<p>I want to add a <code>a tag</code> with a dynamic <code>href</code>. Does that need to be done in a separate chunk of code or can I somehow integrate it with the current code. </p>

<p>What I'm trying to create:</p>

<p><code>&lt;li&gt;&lt;a href="#tabs-1"&gt; text describing url &lt;/a&gt;&lt;/li&gt;</code></p>
