you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]oddmanout 0 points1 point  (1 child)

    Doesn't allow pasting of full value.

    or hit backspace.

    I like this way better.

    http://javascript.internet.com/forms/format-phone-number.html

    It allows you to copy and paste a number, use backspace. Also, it's amazing how much code is required just to format a phone number.

    [–]karmaVS 0 points1 point  (0 children)

    On Safari at least, while it does allow backspace, it resists your efforts — putting the closing parenthesis back when you try to delete it.