I have implemented the jQuery slider functionality which is not filling the slider with default grey background as i slide it. After firebug'ing the slider, i found that the below piece of HTML was missing in my implementation. To note that the comparison was made with the jQuery example on the jQuery site.
<div class="ui-slider-range ui-widget-header ui-corner-all ui-slider-range-min" style="width: 0%;"></div>
Below is the context in which the slider has been implemented.
Javascript
$("#slider-range-min").slider({ range: "min", step: 100, //on slider-stop functionality stop: function(event, ui) { //code goes here }, //on slide functionality slide: function(event, ui) { //code goes here } });
HTML
<div class="txtcenter"> <div id="slider-range-min"></div> </div>
Question :
- Is this HTML generated dynamically by the jQuery slider library ?
- An explanation of its workings.
output from my example
<div id="slider-range-min" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" aria-disabled="false"><a href="#" class="ui-slider-handle ui-state-default ui-corner-all" style="left: 38.5714%;"></a></div>
does not contain the auto-generated div class even though range : "min" has been specified.
Below is a link that replaces default grey with orange background on slide functionality.