Recent Version of Google Chrome forces Autofill irrespective of the Autocomplete=off
.Some of the previous hacks don't work anymore (34+ versions)
I have tested following code on Google Chrome v36.
Solution 1:
Putting 2 lines of code under under <form ..>
tag does the trick.
<form id="form1" runat="server" >
<input style="display:none" type="text" name="fakeusernameremembered"/>
<input style="display:none" type="password" name="fakepasswordremembered"/>
...
Read more
Solution 2:
It removes "name" and "id" attributes from elements and assigns them back after 1ms. Put this in document get ready
.
$('form[autocomplete="off"] input, input[autocomplete="off"]').each(function () {
var input = this;
var name = $(input).attr('name');
var id = $(input).attr('id');
$(input).removeAttr('name');
$(input).removeAttr('id');
setTimeout(function () {
$(input).attr('name', name);
$(input).attr('id', id);
}, 1);
});