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

407
Visualizações
How can I make an input label clickable? (initiate text input)

I'm currently working on a project fiddling with animations on select and was creating a signup form (re-created it on my replit - https://replit.com/join/gzflphmalc-jeezgeorge )

Everything seems to be working fine except for the fact that when I click on the name of the label (name, email, password) it doesn't initiate the text input.

How can I wrap the label with the input so that when I click on the name as well it will initiate the input.

Thanks in advance. :)

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

0

I don't have a Replit account so I can't see your project. But if I understand your question, you can use id and for HTML attributes for that:

<label for="name">First Name</label>
<input id="name" type="text" placeholder="e.g. John Doe" />

Once you click on the label First Name, it will focus on the text input.

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