View Full Version : Input Field stopping the drop down suggestion box

Jenny Dithe
11-05-2010, 12:18 PM

A very basic question. I have an input field:

<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.

11-05-2010, 12:33 PM
Try adding an attribute autocomplete="off" to your form.

Jenny Dithe
11-05-2010, 01:25 PM
That worked.

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