Add a leading zero until the number 10
<p>I have a list of numbers up to the number 10:
1,2,3,4,5,6,7,8,9,10</p>

<p>I need to put a zero in front of each number except the number 10.  </p>

<p>So it looks like this:
01,02,03,04,05,06,07,08,09,10</p>

<p>HTML looks like this:</p>

<pre><code>&lt;p class=​"number weight-400"&gt;​1&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​2​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​3​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​4​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​5​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​6​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​7​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​8​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​9​&lt;/p&gt;​
&lt;p class=​"number weight-400"&gt;​10​&lt;/p&gt;​
</code></pre>

<p>I have jquery to grab them all but I need to figure out how to add a zero to only the first 9 and not the 10th one:</p>

<pre><code>$("p.number").each(function(i, index){
    if (index &lt; 10){

    }
});
</code></pre>

<p>but my each function grabs all the <code>&lt;p&gt;</code> and not the integer inside the p tag.</p>
