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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2010
    Posts
    460
    Thanks
    214
    Thanked 1 Time in 1 Post

    Input Field stopping the drop down suggestion box

    Hi,

    A very basic question. I have an input field:
    Code:
    <input type="text" class="input" name="rp" id="rp" value="" onkeyup="showHint(this.value, 'getName.php','txtHintName')" size="70" /><br /><br />
    which has its own onkeyup event programmed in, so I want to stop the automated drop down box with comes up with suggestions of things you have already typed in that seems to be ingrained on the internet browser.(e.g. if you start typing into the google custom search box at the top of this page it provides a drop down list of things you have previously searched and it is this that I want to get rid of as I have an onkeyup event.)

    I did try googling this as I think the answer must be very simple, but I must be using the wrong search terms as I couldn't find a solution.

    I would be equally happy with either the solution or just the correct search terms to use to find the solution.

    Sorry for such a basic question.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Try adding an attribute autocomplete="off" to your form.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Jenny Dithe (11-05-2010)

  • #3
    Regular Coder
    Join Date
    Sep 2010
    Posts
    460
    Thanks
    214
    Thanked 1 Time in 1 Post
    That worked.

    Thank you, I knew there would be something, but had no idea what name to search for.


  •  

    Posting Permissions

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