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

153
Views
How to create input with specific value layout?

I want to make a date picker with a <input type="text"/> element. Because of specific reasons I cannot use the common <input type="date" /> element. In my input I want that the user is able to type in his date of birth in the following format: dd.MM.YYYY

Is there any possibility to create a "pre-defined" value of the input? I mean I'd like to have 2 . (dot) characters in my input value, which the user cannot delete. So one dot at index[3] of the date string and one dot at index[6] of the date string (XX.XX.XXXX).

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

0

You can use this: also limit the characters:

.day, .month{
  width: 25px;
}
.year{
 width:40px; 
}
  <input type="text" placeholder="DD" class="day" maxlength="2">.
  <input type="text" placeholder="MM" class="month"maxlength="2">.
  <input type="text" placeholder="YYYY" class="year"maxlength="4">

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!