Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

399
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!