How do I access the id of the jQuery selector element used to initialize the magnificPopup() object during the object's initialization?
As an aside, if it's not part of the answer I'm seeking, what does 'this' represent during the object's initialization? As an absolute javascript newb, I half expected items: this[$(".portfolio figure").attr('id')] or even items: this.id to work.
I have my 'items' properties saved into variables such as this:
I'm attempting to set the items property dynamically within the magnificpopup object based upon the id of the jQuery selector used to open each popup.
How do I access the id of the jQuery selector element used to initialize the magnificPopup() object during the object's initialization?
As an aside, if it's not part of the answer I'm seeking, what does 'this' represent during the object's initialization? As an absolute javascript newb, I half expected
items: this[$(".portfolio figure").attr('id')]
or evenitems: this.id
to work.