Dialog: startValue issues
Hello:
I'm having a really tough time getting Slider to set the startValue
and move the slider into position. Everything works perfectly
otherwise...perhaps...
- I can only have one slider per page? I have many of them...they all
work...but I can't set any startValues...
- onready doesn't work with this?
- there is a bug (I've been reading for about an hour and I'm not sure
where I should be on this)
This is what I'm doing...via onready...I've removed handles, etc.,
etc...nothing has worked out so far...
$("#slider12").slider(
{
min: 300,
max: 610,
startValue: 400,
stepping: 10,
stop: function(e,ui) {
var temp = $('#slider12').slider('value', 0);
temp = (temp == 610) ? 'auto': temp;
$('#content p').css('width', temp);
},
change: function(e,ui) {
var temp = $('#slider12').slider('value', 0);
temp = (temp == 610) ? 'auto': temp;
$('#slider12report').html(temp);
}
});
This is in the body...
<div class='left''>Width</div>
<div class='right'>
<div id='slider12' class='ui-slider-12'>
<div class='ui-slider-handle'></div>
</div>
</div>
<div style='clear: both;'><!-- --></div>
Anything obvious I'm missing here?
Thanks