Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda