views:

76

answers:

3

Possible Duplicate:
How do you disable browser Autocomplete on web form field / input tag?

I have implemented my own autocomplete via jQuery but the browser covers up the first option with its own autocomplete info? Is there a way to turn off this field's autocomplete from the server side?

+8  A: 

Use

autocomplete="off"

in your INPUT tag.

RedFilter
perfect! Knew it had to be simple! Thanks... I'll except once it lets me!
Nick Faraday
A: 
<input type="text" autocomplete="off" />
Wade Tandy
Why the down vote?
Wade Tandy
Possibly because it's an exact duplicate. I've corrected it though.
Jouke van der Maas
A: 

In JavaScript, with jQuery:

$('input').attr('autocomplete', 'off');

Or, you can manually add autocomplete="off" as an attribute to whichever elements you need to.

Matt Ball
Actually not all JavaScript, but jquery, specifically.
Wade Tandy
@Wade: Beg your pardon? I said "in JavaScript, with jQuery." It's not an unreasonable assumption, given that the OP said he's already using jQuery.
Matt Ball
sorry, #readingfail
Wade Tandy