2
Hello... I am with a problem that I thought simple, but I am two days ago looking for a solution...
I just can’t get the forms autocomplete disabled. I remembered the 'autocomplete="off"' for this, but it doesn’t work anymore.
Does anyone have an alternative for me to do this on the site? (no matter the language, the HTML will be the same after all).
PS: For Chrome, the code below does the work:
$("input[autocomplete='off']").each(function () {
var input = $(this);
var id = $(this).attr("id");
var name = $(this).attr("name");
input.removeAttr("name").removeAttr("id");
setTimeout(function () {
input.attr("name", name).attr("id", id);
}, 1);
});
Thank you.
Since this attribute is not valid by W3C the staff usually enter the autocomplete="off" via javascript: field.setAttribute('autocomplete','off');
– user60252
https://answall.com/questions/61510/como-remover-auto-complete-de-input-do-google-chrome
– user60252
It is... I saw this "solution" and I was amazed. But it will be the way. I will apply this solution on Monday.
– Rubens