If it was in java i could have done in 10 sec:-
public class Test {
public static void main(String[] args) {
System.out.println(String.format("%05d", 34));
}
}
Have a great day
Well if i knew how to write the script then why would i come to the forums in the first place?
First of all not trying to bring a bad attitude but unfortunately i dont have any experience in javascript until i was assigned to use Spring Framework in j2ee(Hope you guys know what spring framework...
But my problem is related to javascript function. I am trying to write a javascript function where it will automatically insert 00 to make it exact 5 digit.
Hi Guys,
I am writing a program in java whcih includes some jsp pages also. In my jsp page i have a situation where a user is suppose to enter Vendor Id. This textbox is limited to 5 characters.
The user might enter 325 or 12345 or 12. If the user enter less than 5 digits i would like to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.