Next/Previous click jQuery UI
- by madjester
I am trying to add next/previous buttons on a button click using the jQuery UI Slider. I found this code...
$("#down").click(function() {
var s = $("#slider"), val = s.slider("value"), step = s.slider("option", "step");
s.slider("value", val - step);
});
$("#up").click(function() {
var s = $("#slider"), val = s.slider("value"), step = s.slider("option", "step");
s.slider("value", val + step);
});
Here: http://osdir.com/ml/jquery-ui/2009-03/msg00617.html
However this only changes the value of the Slider, moving the slider handle, but it doesn't actually slide the element. Little help?