Hi Dan,
I really hope you can help me.
I did good progresses but now I’m facing a strange issue.
In my page I have links like this:
BOOK
BOOK
BOOK
And I apply this jquery:
jQuery(document).on('click', '.eModal-2', function(e){
e.preventDefault();
jQuery('#eModal-2 iframe').attr('src', jQuery('#eModal-2 iframe').attr('src')+ '?eventid=' + jQuery(this).attr('data-eventid'));
jQuery('#eModal-2 a').attr('data-eventid', jQuery(this).attr('data-eventid'));
jQuery('#eModal-2').emodal('open');
});
The problem is that the resulting IFRAME SRC parameter becomes:
src=”/index.php?eventid=10?eventid=11?eventid=12″
Basically all the “data-eventid” are selected and not only the one from the element that has been clicked.
I checked your pricing/checkout page that should work in the same way but I can’t figure out the jquery code.
What’s missing?
Thanks!