Chrome Autofill/Autocomplete no value for password

后端 未结 20 1988
逝去的感伤
逝去的感伤 2020-11-27 02:57

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

20条回答
  •  伪装坚强ぢ
    2020-11-27 03:12

    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');
        }
    });
    

提交回复
热议问题