I had some functions for buttons with class selector, but experienced a problem with future elements, so i needed to change my functions to
- $(document).on('click', 'button.class', function())
Previously I used a lot of (this) selectors inside my functions, which gave me an ability to fetch id's of pressed buttons and to work with their parents. But now I can't use it. How should I refer to pressed buttons inside these function to get their id's etc?