Jquery get data-id from element code example Example: jquery get data-id const dataId = $('#elementId').attr("data-id");