javascript get data id code example
Example 1: jquery get data-id
const dataId = $('#elementId').attr("data-id");
Example 2: data id tag
var dataId = $(this).attr("data-id");
const dataId = $('#elementId').attr("data-id");
var dataId = $(this).attr("data-id");