View Full Version : How to have an elert that not allow people enter anything in the input box?
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.
02-03-2005, 03:04 PM
You don't want them to be able to enter anything in? Why not just make it readonly...?
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?
02-03-2005, 03:37 PM
<input type="text" name="whatever" onkeypress="alert('foo'); return false;">
02-03-2005, 03:47 PM
THANKS Brandoe85. You're a man :thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.