There's no way to pass custom data through the slider plugin. However, you can bind to the slide event instead of using the callback and then using the data passing method that's built into .bind(). You can also store data on the slider element itself using .data(). Lastly, you can store the data that's available in whatever scope you need and it will be available to you in your callback.
On Oct 4, 4:49 pm, reco <[email protected]> wrote: > hi there > > is there a way to send custom options to the function called on slide? > somthing like > > .slider({ > slide: sliderChange, > myOption: 'test' > }); > > i need to acces the value of myOption inside the sliderChange > function. > > thanx! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
