Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

119
Vistas
How to show only one password bullet in an input field?

Here is a simple input field

<input type="password">

During data input, each character is displayed in bullets (# of characters = # of bullets).

// "password" = ********

How can I only display ONE bullet despite typing more characters? By using clean JS or/and CSS.

// "password" = *
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You could just add a padding at the end of your input element to hide all but one *:

input {
  width: 50px;
  padding-right: 40px;
  box-sizing: border-box;
}
<input type="password" value="Correct horse battery staple" />

Why you would do this is beyond me, but it works.

Actually, running this immediately shows me the first problem with this idea: My password manager's button on the input field is large enough to completely cover that first character.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda