Page 1 of 1

how to cutomize a textbox

Posted: Wed Nov 09, 2005 11:49 pm
by bugthefixer
I have a field for ph no that accepts this format

+(256)41-200-222

how can i make a textbox according to this format like

+( _ _ _ ) _ _ - _ _ _ - _ _ _

so that the user can only fill the blanks with numbers......... any help wud be greatly appreciated

Posted: Thu Nov 10, 2005 2:54 am
by n00b Saibot
you can do three things :arrow:

1. have user input 11 nos. total without formatting and format it yourself [best opt].
2. have a separate input box for each fragment of phone no. [so so]
3. have a javascript format the input on each key-press [least good]

your choice :wink: