Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form field mask

Status
Not open for further replies.

jetclik

Technical User
Jan 31, 2005
5
US
How do I create a form field mask for a date field?

mm/dd/yy


The form field needs to have mm/dd/yy already populated in it, so the user just enters the numbers and it fills out the mask...


any ideas how to put together?


thanks
 
You can create a textbox with a value of "mm/dd/yy". Then, "onFocus();", you can clear the value and allow the user to enter in the desired value. You can also add an onLoseFocus (I forget what the actual function is) that will check to see if the value is blank. If it is blank, you can re-populate the textbox with "mm/dd/yy" again.

Does that work for you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top