This is an important message requiring you to make a choice if you're based in the EU.
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.
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.