I have a table. In a cell of the table there is a link like this:
var data-id = $(this).attr('data-id');
So here in data-id you wll get your "XYZ"