Modaal icon indicating copy to clipboard operation
Modaal copied to clipboard

How do I know which element called the function?

Open t7m opened this issue 1 year ago • 0 comments

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 )

t7m avatar Sep 29 '24 23:09 t7m