slider start position

slider start position


Hi there,
I'm trying to get my slider start position to be anything other than in the far left. Here is my code:
<pre>
$('.myClass').slider({
min: 1,
max: 10,
startValue: 5,
change: function (ev, ui) {
alert(ui.value);
},
});
</pre>
It does indeed have a start value of 5 but I would expect the handle to actually be in position 5 (half way down the slider). I can force the issue by setting the position of the handle using CSS but this seems like an awfully complex thing to calculate (especially if I want to set it dynamically when the page loads).
Hope somebody can help.
<hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/slider-start-position-tp20406003s27240p20406003.html">slider start position</a>
Sent from the <a href="http://www.nabble.com/jQuery-UI-Discussion-f27241.html">jQuery UI Discussion mailing list archive</a> at Nabble.com.