Before repositioning, the slider is at this location: (both thumb and color are correctly positioned)
https://i.stack.imgur.com/J3EGX.png
Prior to Reset:
Html
<input id="xyzslider" class="mdl-slider mdl-js-slider" type="range" min="0.0" max="1.0" value="0.0" step="0.05" tabindex="20">
Jquery
$("#xyzslider").val(value);
After Reset:
The issue I am facing is that after resetting, the slider thumb returns to the minimum value but the color value shown by the slider remains at 0.6.
https://i.stack.imgur.com/Q4o6S.png
Following the reset, I handle the slider in the following manner.
Jquery
$("#xyzslider").val(minValue);
The code I am using is provided below. What could be causing the problem? Why isn't the color value of the slider being reset? Any assistance would be greatly appreciated.
$("#xyzslider").val(0.6);
$("#clickme").click(function() {
$("#xyzslider").val(0.0);
});
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<br>
<input type="button" id="clickme" value="Click Me To Reset Slider">
<input id="xyzslider" class="mdl-slider mdl-js-slider" type="range" min="0.0" max="1.0" value="0.0" step="0.05" tabindex="20">