Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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.

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    You don't want them to be able to enter anything in? Why not just make it readonly...?

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    Last edited by ClueLess; 02-03-2005 at 04:26 PM.

  • #4
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    <input type="text" name="whatever" onkeypress="alert('foo'); return false;">

  • #5
    Regular Coder
    Join Date
    Nov 2002
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts
    THANKS Brandoe85. You're a man


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •