title: JQuery - Number every li
body: <p>I do not know much about arrays and numbering objects. I hope you understand what I mean with "numbering every li". So the first li gets the class "0", the second li gets the class "1", and so on.</p>
  
  <p>Html</p>
  
  <pre><code>&lt;div id="imtheking"&gt;
  &lt;ul&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;li&gt;List Item&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Pseudo Javascript (Jquery)</p>
  
  <pre><code>$('#imtheking ul &gt; li').number(starting from: '0');
  </code></pre>
  
  <p>Result HTML</p>
  
  <pre><code>&lt;div id="imtheking"&gt;
  &lt;ul&gt;
  &lt;li class="0"&gt;List Item&lt;/li&gt;
  &lt;li class="1"&gt;List Item&lt;/li&gt;
  &lt;li class="2"&gt;List Item&lt;/li&gt;
  &lt;li class="3"&gt;List Item&lt;/li&gt;
  &lt;li class="4"&gt;List Item&lt;/li&gt;
  &lt;li class="5"&gt;List Item&lt;/li&gt;
  &lt;li class="6"&gt;List Item&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div
  </code></pre>
  
  <p>Yeah I think a class name which contains only a number is incorrect.. So rather then a "0" or "1" it should be titled "number0" or "number1".</p>
  
  <p>Thanks for your response!</p>