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

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

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