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

161
Vistas
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 Respuestas
Responde la pregunta

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 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