telephone no format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

how to set a format for an input type=text for telephone no. Let say
"412-34567890"
user just have to type 41234567890, the page will automatically display the
no as 412-34567890.

tq
 
how about this:
http://javascript.internet.com/forms/format-phone-number.html

there are a lot more on that site so search if it's not exactly what you
want.

I've also seen it done where the form designer puts three text fields one
for the area code, prefix, and postfix parts of the phone number, and
usually has a JavaScript that jumps the user to the next text field when
they've entered either three or four numbers into one of the fields.

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
Back
Top