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