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

258
Views
Force a leading zero to show on page for input type="text" for time format hh:mm:ss

HTML markup <input type="text" value="00:00:00" class="datepicker-time" aria-invalid="false"> does not display the leading zero in a text input with time format hh:mm:ss. Even though the value for the input is 00:00:00, the page shows 0:00:00. How can I force the leading zero to display?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As @Paulie_D said - use type='time' instead of text..

<input type="time" value="00:00" class="datepicker-time" aria-invalid="false"/>

One thing to note is that developer.mozilla.org has a lot of good info on how you can use this, both in JS and the general HTML items.

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!