logo

Disable auto complete cache on input fields

logo

I’m really surprised by how hard it was to find this on the net! I was working with a form the other day at work when I had a text field that seems to have a very common name.

Now this isn’t an issue in itself but when I went to type something into this field I was given a big drop down of suggestions from my browser cache as to what I may want to put in this field. This is awesome, but not in this particular case.

So how do we stop this from happening? Simple! autocomplete=”off”

An example:

<input name=”search” id=”search” autocomplete=”off” type=”text” />

It’s that simple! No more annoying auto completion on this fancy input field.

4 Responses to “Disable auto complete cache on input fields”

  1. justsomebody says:

    “autocomplete” is an invalid attribute of the input tag.

  2. Timby says:

    Seems to work fine for me?

  3. Khmer Song says:

    Thank you very much! this is what m looking for so long time… work fine for me…

  4. Nandhaguru says:

    Thank you very much! Really it helps and you saved me :-)

Leave a Reply

logo
logo
Powered by Wordpress | Designed by Elegant Themes