Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

autocomplete="off" force in browser

I have a login form and I NEED to force autocomplete to off. i have tried

jquery: $('#login').attr("autocomplete", "off");

HTML: <input ... autocomplete="off">

Javascript: document.getElementById('myInputId').autocomplete = 'off';

When I click the login input box a drop down appears across all browsers FF, Chrome, IE..

N.B. this applies to users who have previously saved password information They need to forced to enter login details

like image 962
Sunny Patel Avatar asked Dec 09 '22 13:12

Sunny Patel


1 Answers

Or add with jQuery: $("input, select, textarea").attr("autocomplete", "off");

like image 121
Vitor Schweder Avatar answered Dec 27 '22 05:12

Vitor Schweder