J
JohnH
I need to validate some entries on a FP web form:
1. If a number is less than 10 digits long, then it is
padded with leading zeros, so 100 would become
0000000100
2. If a number begins with a A, then it needs to have
6 digits after it. If a single digit is entered, then
it needs to be padded with zeros, so A1 would be
A000001
3. If a number starts off with 100, then it needs to be
13 digits long
Please help with some JavaScripint please. Some links
would be useful.
Thanks.
John
1. If a number is less than 10 digits long, then it is
padded with leading zeros, so 100 would become
0000000100
2. If a number begins with a A, then it needs to have
6 digits after it. If a single digit is entered, then
it needs to be padded with zeros, so A1 would be
A000001
3. If a number starts off with 100, then it needs to be
13 digits long
Please help with some JavaScripint please. Some links
would be useful.
Thanks.
John