Setting attribute using data from a for loop
<p>I have the following code</p>

<pre><code>for(var i = 0; i &lt; data.length; i++) {
       var item = data[i];
       $('.client-content').append("&lt;li&gt;"+"&lt;b&gt;"+i +"&lt;/b&gt;" + " : " +item[0] + " : " + item[1]+"&lt;a href='#' class='link-right'&gt;Edit&lt;/a&gt;" + "&lt;a href='#' class='link-right'&gt;Delete&lt;/a&gt;"+"&lt;/li&gt;" + "&lt;br/&gt;");
</code></pre>

<p><code>item[0]</code> is the record id that i want to have as my id attribute.I want my <code>&lt;li&gt;</code> to have the id <code>item[0]</code>.How do i do that?.</p>
