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

114
Views
cómo obtener el valor de texto de span y establecer una función js para calcular y enviar una alerta del resultado
function Inputs1() { var total = 0; var coll = document.getElementsByName("input1") for ( var i = 0; i<coll.length; i++) { var ele = coll[i]; total += parseInt(ele.value); } var Display = document.getElementById("Display"); Display.innerHTML = total; } <input name="input1" onkeyup="Inputs1()" /> <input name="input1" onkeyup="Inputs1()" /> <span id="Display"></span>

así que quiero hacer dos tramos con dos entradas diferentes (uno es input1 y el otro es input2) ¿cómo hago para que el javascript tome los números de salida de tramo, los calcule y luego los ponga en alerta que se active presionando un botón?

about 4 years ago · Santiago Trujillo
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!