skift
skift

Reputation: 1027

Prevent browsers from auto-filling form fields

I have tried to find a way to prevent browsers (mostly FF) to prevent auto-filling of my form. I don't mine auto complete, as they type in values it offers suggestions. But when I load a form in FF it auto fills the form with the previous values. But I want to always have the fields be blank on load.

I have tried using autocomplete="off" in the tag, but that does not work. Are there any solutions to this? I have looked for other questions and they all say to use that attribute, but it does not work for auto filling, it does for auto complete. Could I use JS/jQuery to do this?

Upvotes: 7

Views: 6322

Answers (2)

Andrii
Andrii

Reputation: 770

New versions of Chrome and Mozilla don't recognize autocomplete="off" or autocomplete="false". I solved autocomplete issue using this js solution

Upvotes: 0

Pranay Rana
Pranay Rana

Reputation: 176886

try this might work for you set autocomplete="off"

<input type="text" autocomplete="off" />

check : How to Turn Off Form Autocompletion

Upvotes: 14

Related Questions