Help - Search - Members - Calendar
Full Version: Forms: Auto Formatting?
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
cnicphoto
I am building a contact page for my web site and I was wondering if anyone knew how to do something... Here's the gist of what I want:

I want a spot for the visitor to enter their phone number into my form, but I want it to automatically format the number they type like: (XXX) XXX-XXXX

So if they type 5551234567 into the input box, I want it to show up (555) 123-4567 in the box as they type.

Does that make sense? blink.gif
proactiv
You may use jQuery for this purposes - http://jquery.com/ -it's quite simple plus there are a lot of tutorials on this website.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.