When you have saved username and password for some site Chrome will autofill that username and password, but if you try to get the value for the password input field it is e
My solution comparing my css to the chrome autocomplete color...
$('input, select, textarea').each(function(){ var inputValue = $(this).val(); if ( inputValue != "" || $(this).css("background-color") != "rgba(255, 255, 255, 0)") { $(this).parents('.form-group').addClass('focused'); } });