title: detecting autofill on chrome
body: <p>Okay, this is the story so far.</p>
  
  <p>I have a login form with label overlays that hide when values are entered.<br>
  This all works fine but on chrome the autofill doesn't trigger anything.</p>
  
  <p>So i rustled up the following workaround, but when i tried the remove the alert it stops working???</p>
  
  <pre><code>$(window).load(function(){
     alert();
     if($('input:-webkit-autofill').val()){
        $("label[for='user'], label[for='pass']").css("visibility", "hidden");   
     }        
  });
  </code></pre>
  
  <p>I've tinkered with it for an hour or two now and nothing. Any ideas?</p>