Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!