Page 1 of 1

Form Text

Posted: Thu Feb 15, 2007 6:30 pm
by iknownothing
Hey Guys,
I was wondering if anyone could give me a hand of point me in the right direction for a few things. When typing in a date field, I want "/" to appear where appropriate (after numbers 2 and 4) when user only types in the numbers. The same goes for a phone number, to add ( ) to indicate area code, and certain spacing after a certain number of numbers.

I also am looking into the standard value of a text box (in light grey usually) that disappears when clicked on.

Thanks in advance

Posted: Thu Feb 15, 2007 6:57 pm
by feyd
onkeydown, onkeyup, onkeypress are the events you will need to look into.