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

ID of modal in hide/show events? #151

Closed
Jayphen opened this issue Aug 26, 2014 · 2 comments
Closed

ID of modal in hide/show events? #151

Jayphen opened this issue Aug 26, 2014 · 2 comments

Comments

@Jayphen
Copy link

Jayphen commented Aug 26, 2014

Is it possible to pass through the ID of the modal that has been hidden/shown when these events are fired? I have more than 1 on a page and I need to set up different event handling for each.

@dhunink
Copy link

dhunink commented Aug 26, 2014

Not by CSS. But in the javascript, when the modal is created, the original classes are transferred. You could transfer the ID in the same way I guess

@Jayphen Jayphen closed this as completed Sep 9, 2014
@drublic
Copy link
Owner

drublic commented Sep 9, 2014

It is also possible to use the modal directly in JS. You can find it within the custom data of the event.

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

No branches or pull requests

3 participants