jQuery obtient des données-id
const dataId = $('#elementId').attr("data-id");
Chris PA
const dataId = $('#elementId').attr("data-id");
//get data-id attribute in plain Javascript
var element = document.getElementById('myDivID');
var dataID = element.getAttribute('data-id');
//get data-id using jQuery
var dataID = $('myDivID').data('data-id');
$(document).on('click', '.class_name', function () {
var var_name = $(this).attr('attribute_name');
console.log(var_name)
})