Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get ID from roundSlider that was changed #49

Closed
shdsmth opened this issue Oct 14, 2016 · 2 comments
Closed

Get ID from roundSlider that was changed #49

shdsmth opened this issue Oct 14, 2016 · 2 comments
Assignees

Comments

@shdsmth
Copy link

shdsmth commented Oct 14, 2016

Hi there,

We have multiple roundSliders on one page. There is a "change" event available, but how can the ID of the roundSlider that was changed from the event arguments provided by this event?

Thanks in advance.

@soundar24
Copy link
Owner

Currently i didn't provided the id in the event arguments, but inside the event handler "this" points the corresponding slider instance. So from that instance you can get all things about the current slider.

this.control returns the current slider element, so
this.control.attr("id") returns the id

Check the below demo and let me know if any concerns still:
http://jsfiddle.net/soundar24/LpuLe9tr/694/

@soundar24
Copy link
Owner

Now passed the element id in the event arguments (in version 1.3.2):
http://jsfiddle.net/soundar24/vej1re0y/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants