triggering jQuery on iframe element

I’m using MailChimp pop up form, which gives a script tag and put this on footer of the site. I have added a link and class on the MailChimp in the footer. Now what I want to do is that when anyone clicks on that link I want to trigger a click event on existing element (Close button).

jQuery('body').on('click','.content__footer .nothanks', function(){

I tried this code in firebug did not get any alert.

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.