Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

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

Description

@t7m

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 )

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions