Add multiple unique ids to an element
<p>I need to add a second unique id to an element.</p>

<p>I use this to generate new ids</p>

<pre><code>var id = 1;
function getNextId()
{
    return ++id;
}
</code></pre>

<p>Then I am doing this</p>

<pre><code>$('&lt;div id="content '" + getNextId() +"'" class="span6"&gt;&lt;/div&gt;').appendTo('.new');
</code></pre>

<p>But I am getting an <code>Uncaight SyntaxError: Unexpected identifier</code></p>

<p>How can I add multiple ids where the second is a unique one?</p>

<p>(I am remove the first id on a click, so I'm ok with leaving #content there)</p>

<p>Multiple ids on an element have been discussed in here: <a href="http://stackoverflow.com/questions/192048/can-an-html-element-have-multiple-ids">Can an html element have multiple ids?</a></p>
