After a long struggle, I finally discovered the only way to clear the autocomplete style in every browser:
$('input').each(function() { var $this = $(this); $this.after($this.clone()).remove(); });
The problem is that it cannot be run in load , because autocomplete of fields occurs sometime after the fact. Right now I am running it for 100 milliseconds after load :
// Kill autofill styles $(window).on({ load: function() { setTimeout(function() { $('.text').each(function() { var $this = $(this); $this.after($this.clone()).remove(); }); }, 100); } });
and it seems safe even for the slowest systems, but it really is not elegant. Are there any reliable events or checks that I can do to check if autocompletion is complete?
EDIT: This is autocomplete.
autofill http://dl.dropbox.com/u/2463964/autofill.png
javascript jquery autofill
Ryan
source share