Pad a TextBox with leading 0's in ASP.NET using JavaScript
<p>I have a TextBox on my ASP.NET webpage, where the user can enter a number. What I want to do is as soon as the user moves the focus off that TextBox, to call a piece of JS to pad that number with up to 10 leading zero's if necessary.</p>

<p>I've tried a few things but my JavaScript's a bit rusty. Any ideas? </p>
