• 0

javascript help


Question

i have a variable that can have a varied length ... i want to pad it with zeros so that the length remains 10, any ideas how to do that directly without using any loops

e.g 12345 becomes 0000012345 etc

tx

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.