Reset number to 1 if number is over than 10
<p><code>num</code> is a variable which is dynamically changed within 1 to 9.</p>

<p>I must update the value in HTML for example let say the <code>num</code> is 6,</p>

<p>i need to set 1st field as 6, second field as 7, third field as 8 and so on</p>

<p>in simple version, <strong>6, 7, 8, 9, 1, 2, 3, 4, 5</strong></p>

<pre><code>$("#one").text(num);
....
$("#nine").text(num+8);
</code></pre>

<p>EDIT: Sorry for confusion</p>

<pre><code>$("#one").text(num);
$("#two").text(num+1);
....
$("#nine").text(num+8);
</code></pre>

<p>so for example, the value on <code>$("#nine")</code> is 6+8 = 14, whereas it should be 5</p>
