$(el).slider('option', 'max') will return the max value. You can use
the option method to get or set any option after init.
Your getMax() function didn't work because all UI plugins have a
specific way to define getters due to the widget factory. We will be
changing how detection of getters is done in our next release.
On Oct 7, 11:50 am, Chuck <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the ui.slider widget. I've set the min and max when I
> created it. Now later on in a different method I wish to get the min
> and max from the slider (it's my controller, want to use it as my
> model as well). I just don't get how that can be done?! Even after
> trying to modify the source to return it explicitly in a getter
> method:
>
> getMax: function() {
> return this.options.axis == "horizontal" ? this.options.max.x :
> this.options.max.y;
> }
>
> Instead I get a jQuery object returned, not the integer value!
>
> thanks,
> Chuck
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---