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

107
Visualizações
How to create year dropdown in Birthday when user is required to enter birthday

Please I'm creating a sign up page and needed to add birthday to it. So I used "select" to create the day and month but it becomes practically impossible to use "select" since years is usually much maybe from 1900s till present. please how can i use code to fix that problem? I mean how can i create a dropdown that users can pick their birth year from?

Thanks for your reply.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

1. One way to achieve this is using input type date

You can use <input type="date">.

Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

<input> elements of type="date" create input fields that let the user enter a date. You can also add a minimum and maximum date validation.

<label for="birthday">Enter Birthday:</label>

<input type="date" id="birthday" name="birthday" value="2021-11-14">

2. The second way to achieve these using libraries like:

  • react-datetime
  • react-datepicker
  • react-datetime-picker
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