title: Jquery - How to set an attribute with index starting at 1 instead of 0?
body: <pre><code>$('ul li a').each(function(index, element){$(element).attr("href", "#img"+index);});
  </code></pre>
  
  <p>I'd like my list item links to start with the href as "#img1" and count up from there for each item. The code I have will start at "#img0" which doesn't work for what I'm trying to accomplish.</p>
  
  <p>Thanks for any help.</p>