Prevent browser from filling in autofill form fields

I tried to find a way to prevent the browser (mostly FF) in order to prevent my form from filling out automatically. I do not use auto complete, as they enter values ​​that suggest sentences. But when I load the form in FF, it automatically fills the form with the previous values. But I want the fields to always be empty when loading.

I tried using autocomplete = "off" in the tag, but this does not work. Are there any solutions? I was looking for other questions, and they all say they use this attribute, but it does not work for autocomplete, it does for automatic completion. Can I use JS / jQuery for this?

+6
source share
1 answer

try, this may work for you, set autocomplete="off"

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

check: How to disable form autocomplete

+13
source

Source: https://habr.com/ru/post/920735/


All Articles