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

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

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