Increment value to attr using jquery
<p>I want to increment the value of i .  The "for" loop does not work. </p>

<pre><code>$("a[href$='.xls']").appendTo(".xl1").attr('id','xl'+i);
</code></pre>

<p>I search all excel files and places them in a container and increment the value of their id.</p>

<p>Thanks
Jean</p>
