Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 431
skift Avatar asked Jul 17 '12 19:07

skift


1 Answers

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

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

check : How to Turn Off Form Autocompletion

like image 154
Pranay Rana Avatar answered Oct 07 '22 02:10

Pranay Rana