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

79
Vistas
Transfer input value

I have a problem with my web site when I use a form with 2 input I want to transfer the value of the 1st input to the 2nd input with minus sign without using the submit button,knowing that I used the php and js. Please if any of you have an answer I really need it.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Not sure if I understood your question right but if so this is what you are looking for using javascript

<html>
<head>
<script>
function setSecondField(value){
document.getElementById("field2").value = value.value+'-';
}
</script>
</head>
<body>

   
<input type="text" name="title" id="field1" class="text_box" oninput="setSecondField(this)" />

<input type="text" name="title" id="field2" class="text_box" "/>

</body>
</html>

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