trying to create a script to format phone numbers as the client types it in. I found
this one which I like alot.
But we just realized that it does not work correctly in IE 6. If you type in a zero, strange things happen. For example, typing 405 leaves you with (405) but the curser is BEFORE the 5 instead of after.
This works fine in firefox.
EDIT : I think I found the problem. if(keycode > 48){
ValidatePhone(object)
}
should say:
if (keycode > 47){
ValidatePhone(object)
}
Here is the script if you want to take a look:
Current Mood:
confused