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

How do I know which element called the function? #145

Open
t7m opened this issue Sep 29, 2024 · 0 comments
Open

How do I know which element called the function? #145

t7m opened this issue Sep 29, 2024 · 0 comments

Comments

@t7m
Copy link

t7m commented Sep 29, 2024

Your documentation shows this:

$('.my-link').modaal({
before_open: function() {
alert('Before open');
},
after_open: myFunction
});

Great. So what I want to do is in the before_open function, some specific logic based on which element was clicked. What is that element? How can I get to it? It does not appear to be $( this )

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

1 participant