How to make 8 digit number in javascript?
<p>I am trying to make an auto-generator of numbers. but I'm having a problem on how to forced the number to 8 digit.</p>

<pre>

for&#40;i=1&#59;i&#60;=100&#59;i++&#41; &#123;
  var i = x++&#59;

  var test = i.toFixed(8&#41;&#59; // I used this but this is only for decimals

  jQuery&#40;'.generated_table'&#41;.append(test+'&#60;br />');&#59;
&#125;

</pre>

<p>Please help.</p>
