In HTML code we are using input type range but the problem is when we use focus event then in Firefox its not working properly.
here is my code
var p = document.getElementById("price"),
res = document.getElementById("result");
test = document.getElementById("test");
p.addEventListener("input", function() {
test.focus();
test.value = "$" + p.value;
}, false);
#result {
font-size: 2em;
}
<div style="margin-top: 1em">
<h2>Price</h2> $51
<input id="price" type="range" min="51" max="360" value="" />$360
</div>
<input type="text" name="test" value="" id="test" />
slider is not sliding smoothly in mozilla but its working fine in chrome