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

100
Views
I update the range slider value but it does not display visually

Sometimes the value of a slider changes depending on a variable. When this happens, I set my-slider.value = newValue, and it changes. But it is not shown visually, that is, the slider still shows the previous value. What should I do?

var newValue;

function calcNV() {
  async function delayedGreeting() {

    altitude = document.getElementById("altitude-slider");
    limit = document.getElementById("limit-slider");

    if (altitude.value == 1000) {
      limit.value = newValue = 90;
    }
    if (altitude.value == 1500) {
      limit.value = newValue = 89;
    }
    if (altitude.value == 2000) {
      limit.value = newValue = 88;
    }

    $('#obj-ntydnn448').text(newValue + "%");
  }
  delayedGreeting();
}

// SPO2 Limit
function updateLimit(val) {
  $('#obj-ntydnn448').text(val + "%");
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="item-cell flex-shrink-3">
  <div class="range-slider range-slider-init color-f66907">
    <input type="range" min="70" max="90" step="1" value="88" id="limit-slider" onchange="updateLimit(this.value);" oninput="updateLimit(value);">
  </div>
</div>

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

0

Here is a code I made for slider and please provide your code next time


Choose your Cinema


1km 100km

https://codepen.io/ipeleng/pen/qjoovo

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!