|
Script to calculate amount of digits in a given number. - Willing to pay for this.
Hi,
I am not very experienced in JavaScript, so I need some help here. I've had a look around the net but I can't seem to find this.
I am looking for a simple script that will calculate the amount of digits in a given number entered in a text box and output the value into a different text box or preferably a hidden value.
For example:
1 would be 1 digit.
01 would be 2 digits.
10 would be 2 digits
100 would be three digits.
And so on.
I need this so I can calculate the cost of a door number. Numerals cost £2.00 each so I need the form I am building to calculate the cost of a door number. I need this to be a script that calculates on the fly without going to a separate page.
This is quite important so I would be willing to pay a small fee if someone could write this for me, I will pay via PayPal. I am 100% serious no BS as I need this ASAP.
|