Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2012 15:58
What would you like to do?
Remove yellow background caused by Google Chrome autocomplete
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
var text = $(this).val();
var name = $(this).attr('name');
$('input[name=' + name + ']').val(text);
}, 50);
Copy link

@reinink Nice script. Got it working but replaced: $(this).after(this.outerHTML).remove(); with: $(this).after(this.outerHTML).before().addClass('remove');

Works perfectly. Thanks bro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment