autocomplete = 'off' is not working on firefox

后端 未结 17 1744
無奈伤痛
無奈伤痛 2020-12-17 09:25

I created 2 login pages of same domain.

  1. www.example.com/login.cfm
  2. www.example.com/newLogin.cfm

I put the form name different for 2 forms

17条回答
  •  轮回少年
    2020-12-17 09:52

    thanks to the idea of albert.garipov, i made a solution that mimics the functionality of the type password. this doesn't show the password on input

    
    

    function OnChangePassword()
    { 
      if ($("#password").val() == "") {
          $("#password").attr('type', 'text');
      }
      if ($("#password").val() != "") {
          $("#password").attr('type', 'password');
      }
    }
    

提交回复
热议问题