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

79
Views
Is there a way to call a function on each step change of <input type='range'>?

I have simple bootstrap slider in HTML and I want it to show a value that a user selects while the user still deciding on the value.

html right now:

<div  class="container-sm position-fixed w-25 bottom-0 end-0">
   <label for="customRange1" class="form-label" #zoom_label>Example range</label>
   <input type="range" class="form-range" id="customRange1" min="0.2" max="5.0" step="0.1" 
   #zoom (mousedown)="test2(zoom, zoom_label)">
</div>

I am using Angular 12; I tried using an OnChange event but that only calls a function when a user changes the slider's position. OnMouseDown seems to be making calls but the input's value doesn't change as expected.

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

0

Try to use input event instead:

<div  class="container-sm position-fixed w-25 bottom-0 end-0">
   <label for="customRange1" class="form-label" #zoom_label>Example range</label>
   <input type="range" class="form-range" id="customRange1" min="0.2" max="5.0" step="0.1" 
   #zoom (input)="test2(zoom, zoom_label)">
</div>
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!