Next/Previous click jQuery UI
        Posted  
        
            by madjester
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by madjester
        
        
        
        Published on 2009-09-13T15:09:09Z
        Indexed on 
            2010/05/28
            20:02 UTC
        
        
        Read the original article
        Hit count: 172
        
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?
© Stack Overflow or respective owner