Range Slider
Display the current value of an <input type="range"> in real time as the user drags the slider.
Display the current value of an <input type="range"> in real time as the user drags the slider.
<input type="range" id="budget" min="100" max="10000" step="100" value="1000">
<div>Budget: $<span id="budgetDisplay">1000</span></div>
<script>
$("#budget").on("input", function() {
$("#budgetDisplay").text($(this).val());
});
</script>
Use the "input" event for real-time updates while dragging, not "change" which fires on release.