I want to show the number of ticks in my jquery ui slider, is there a way to do this?
For example I have a slider with a max of 100, I want it some what like this
0--------50--------100
minus the dashes of course.
I want to show the number of ticks in my jquery ui slider, is there a way to do this?
For example I have a slider with a max of 100, I want it some what like this
0--------50--------100
minus the dashes of course.
The easiest way, in my mind, is to put this above/below the slider:
<div id="slider_steps"> <span>0</span> <span>50</span> <span>100</span> </div>
<div id="slider"></div>
Then style the labels appropriately. You could also insert the labels into the #slider
itself, but this will probably force the slider to be thicker for readability:
<div id="slider"> <span id="step">50</span> </div>
div#slider span#step {position:relative; left:50%;}