I'm using default HTML5 range slider. It works, but is it possible to change the value of this slider on the go (when mousebutton is clicked on range bar and mouse slides to any side)? Important: is it possible without using jQueryUI, but with jQuery (or pure JS) only?
HTML:
<input type="range" name="oc-max-price" id="oc-max-price" min="390" max="5000" step="10" value="5000">
<span id="oc-max-price-val">5000</span>
jQuery code:
$('#oc-max-price').change(function () {
var mP = $('#oc-max-price').val();
$('#oc-max-price-val').text(mP);
console.log(mP);
});