In Magnific Popup, I want to get an attribute in the link that is clicked and use it in a callback function (using callbacks: open) to make some changes in the DOM.
// "item.el" is a target DOM element (if present) // "item.src" is a source that you may modify open: function(item) {}
and use data-attributes, to example data-myatt - that get:
$(this).data('myatt')