<form>
<input type="text" maxlength="5" />
</form>
I need help adding a zero to the text box value if the input has fewer digits than the maximum length of the field. for example: if some one enters 1234 then it should add a zero to it and make it 01234. Same way if someone enters 12 then it should make it 00012 when the user moves out of the text field. We also need to make sure that if user enters 00000 this should not be accepted as input.
Thanks!