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

155
Views
El control deslizante de rango hace que la página quede en blanco cuando las partes no están comentadas
function RangeSlider() { var ranger = document.getElementById("ranger"); var output = document.getElementById("output"); var cost = document.getElementById("cost"); // output.value = ranger.value; // cost.value = output.value * 10; // ranger.oninput = function() { // output.value = this.value // cost.value = output.value * 10} return( <div class="rangecontainer"> <p class="numerichours">Hours: <span ref={output}></span></p> <input type="range" min="1" max="100" value="10" class="range" ref={ranger}/> <p class="numerictext">Estimated Cost $: <span ref={cost}></span></p> </div> ) };

Estoy tratando de hacer un control deslizante de rango de imagen como en las escuelas W3, pero en lugar de html/css/js en un documento html como ellos, esperaba hacerlo en una función Javascript en mi sitio web React. Cuando las líneas anteriores no están comentadas, toda la página queda en blanco. El CSS funciona, por lo que el problema está solo en Javascript y HTML. Cualquier sugerencia sería apreciada :D

https://www.w3schools.com/howto/howto_js_rangeslider.asp

about 4 years ago · Juan Pablo Isaza
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!