Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
How I can make text field behave like password field through input masking?

I dont want to save password for my site. So, I tried with autocomplete = 'off', autocomplete="new-password" but it is not working. Now I come up with input masking idea. So could you please let me know how I can change each character enter in text field to behave like password * character.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

here is an example.

.test {
  text-security: disc;
  -webkit-text-security: disc;
  -moz-text-security: disc;
}
<input type="text" class="test">

about 4 years ago · Juan Pablo Isaza Relatório

0

Just try this one but I think this will only work in Chrome.

document.getElementById("input").oninput = ( function(event) {
        document.getElementById("text").innerHTML = document.getElementById("input").value;
});
#input {
-webkit-text-security: disc;
-moz-text-security: disc;
}
<input type="text" name="" id="input">
<p id="text"></p>

Thanks and best regards!

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda