How the Keyword “this” Works
How to Access the Correct “this” Inside a Callback
How to Get the Children of the $(this) Selector
How to Get the data-id Attribute
Read this tutorial and learn the right ways of getting the data-id attribute using jQuery two methods. Also, learn more information about the two methods.
How to Get the ID of the Element that Fired an Event in jQuery
This tutorial provides you the method of getting the id of the element fired an event in jQuery. Read about the event.target property and this keyword.