Bugfix + improvements to small Javscript Text Formatting code
$15-20 USD
Abgeschlossen
Veröffentlicht vor etwa 16 Jahren
$15-20 USD
Bezahlt bei Lieferung
We have some javascript code that causes a text box to format the contents as a phone number as they are typed in. ex: 2223334444 is formatted as (222) 333-4444. This happens as the user types, so in effect the box contents are checked and modified for each keypress. Example + code is here: [login to view URL] [login to view URL] Currently the code works great in one direction in IE, FF, Safari and Opera, but backspacing doesn't work past the hyphen (try it, you'll see what I mean). Additional feature I need is to only allow numeric characters to be typed in. This means if I type a letter, it will not even show up in the text box.
## Deliverables
Updated javascript that allows backspacing, but still works identical in all other respects. Also, numbers shall be the only characters that can make it to the text box (this is updated code too) This code needs to work in IE 5.5+ Opera, Firefox, and Safari
## Platform
IE 5.5+ Opera, Firefox, and Safari