Preventing auto-fill function of browser
Hi,
I am trying to prevent auto-fill function of browser on Android 2.3.X.
I can make it work on Chrome browser of my PC, but the code doesn't seem to
work on Android mobile.
Could you tell me how I can make this script work?
How shall I re-write the script?
Thank you very much for your help!
function setVals() {
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');
$(this).after(this.outerHTML).remove();
$('input[name=' + name + ']').val(text);
});
}