Answer the question
In order to leave comments, you need to log in
How can you catch a popup event in the middle of its path?
Good evening.
There is a table row, on clicking on it, a click event occurs. I would like to catch this event in the handler on the document in order to capture those elements that will be added dynamically. In jQuery I would do this:
$(document).on('click', '[data-behavior="something"]', event => {
// Все работает
});
Answer the question
In order to leave comments, you need to log in
How did the jQuery authors do it - does it work for them?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question