Skip to main content

I’ve created a popup with a button. The button scrolls to a specific anchor on my page. This is done by action = Go to url and the URL = http://www.website.com/#anchor


This seems to work perfectly. But after you click on the button, I want the popup to close.

So I thought that I could trigger a click on the close icon.


jQuery('#lp-pom-button-19').on('click', function(){
jQuery('.ub-emb-close').trigger('click');
console.log('test');

});


But that doesn’t seems to work, only the “test” is printed in the console screen.

How can I close the popup after the scroll?


Thanks

HI! I have the same problem, could you solve this problem?


Reply