Monday, June 1, 2009

[jQuery] Re: Slider Values Not Accurate at Ends


On Mon, Jun 1, 2009 at 11:29 PM, Musixz Man <musixz@hotmail.com> wrote:
The change event fires when the mouse is released (slide stop) - which updates the value correctly on mouse release.

But, is there no way to get a accurate real-time value while the mouse is held down while dragging it all the way left and then right?

As I said, you can get this from ui.value in the slide callback:

$("#slider").slider({
  slider: function(event, ui) {
    console.log(ui.value);
  }
});

- Richard

No comments: