Show Bid Request
Javascript Text Box Formatting
Bid Request Id: 25710
|
|
|
Description:
I want to format a textbox entry to hold 6 digits with leading "0"'s (Number 0). Here's how it should work, when a person enters a number like 43, I want the number in the check box to change to 000043 when they go to the next field. You can use the onEvent handler of onBlur or onChange to accomplish the running of the script after the number has been entered. Some examples of user input and how it would be formatted are the following:
Input Formatted 23 000023 355 000355 7352 007352 48356 048356 189073 189073
There are a maximum of 6 digits allowed in the text box. I simply need the code to the javascript and do not need an actual example of where to put the event handler as I can do that. This code must work in both Netscape and Explorer so Javascript version 1.2 code should work fine.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Windows, Javascript
Must be 100% finished and received by buyer on:
Aug 30, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$8 (USD)
|
Aug 28, 2002 1:18:35 PM EDT
|
9.62
(Excellent)
|
|
|
Please provide me with the name of the form field you want this to format.
It is a simple script to write, and will probably be a max of 5 lines of code.
I will make this a function that can be called from either onBlur, onLoad or whenever needed.
Let me know.
-Charles |
|
|
|
|
|