...

View Full Version : How to have an elert that not allow people enter anything in the input box?



ClueLess
02-03-2005, 03:02 PM
If people try enter any chars in the input box, we would like to have an alert message saying "Please calendar to select the date." Please help me how to do that? Thanks so much for your help.

Brandoe85
02-03-2005, 03:04 PM
You don't want them to be able to enter anything in? Why not just make it readonly...?

ClueLess
02-03-2005, 03:19 PM
thanks for asking. I have been thinking that too, but I just want them to know that a calendar is available there for them to use.
By the way, a current date displays in the input box, if they want to change the date....we just want them to use a calendar...therefore, we would like to have an alert message to let them know. Is it possible to do it?

Brandoe85
02-03-2005, 03:37 PM
<input type="text" name="whatever" onkeypress="alert('foo'); return false;">

ClueLess
02-03-2005, 03:47 PM
THANKS Brandoe85. You're a man :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum