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

131
Views
Is there a way to limit an input tag to only have one value?

How can I limit an input tag to only have the first value? In this case it would be value1.

<input value="value1
    &nbsp;value2
    &nbsp;value3
    &nbsp;value4">

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Assuming you are using HTML 5, the best way to do this is to use the pattern attribute.

<input pattern="\S+">

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!