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

53
Views
Set template in the input box

I want to create a template inside the input box: when i click on the input it will automatically select me the word "yourName" and (maybe) pressing tab switch to the word "yourEmail". Basically I want that the user can modify ONLY "yourName" and "yourEmail", the rest must remain like that, how do I do?

input {
  width: 200px;
  height: 20px;
}
<input type="text" value="<yourName>(yourEmail)">

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

0

You can use two inputs and fake the border like the following. The look is not really nice, but you can apply your own styles to it.

div {
  border: 1px solid grey;
  border-radius: 2px;
  width: max-content;
}

div:hover {
  border-color: dimgrey;
}

div input {
  display: inline;
  min-width: 7rem;
  width: max-content;
  /* you could add the following line, if you want no outlining on focus */
  /*  outline: none;*/
  border: none;
}
<div>
  <span>&lt;</span>
  <input type="text" placeholder="yourname">
  <span>&gt;</span>
  <span>(</span>
  <input type="email" placeholder="yourEmail">
  <span>)</span>
</div>

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!