views:

11

answers:

2

hi, i use the jquery ui slider and all is fine except that the function i defined in the change prameter fired only when i release the mouse over the handles. is the a way to call the function when the mouse is released outside the slider?

thanks for helping.

A: 

Hi phase,

There would seem to be something wrong here, the change event is based on the slider position moving and therefore if you can see the pin being dragged whilst the mouse is down then the event should still fire irrespective of where your mouse ends up.

Is this the standard jquery slider you are using? If so, try the same test on the official demo page:

jQuery UI demo page

You will see that no matter where your mouse is the change event still fires so long as you continue to hold the mouse button down after initially clicking the pin.

Brian Scott
A: 

that's it. there was a function called on mouseup. thanks.

phase

related questions