• Resolved gatta2

    (@gatta2)


    I added the following javascript in the content to add a close action when a button is clicked but it doesn’t work. Do you know why?

    <script type=”text/javascript”>
    jQuery(function() {
    jQuery(‘.hs-submit .hs-button’).click(function(e) {
    e.preventDefault();
    jQuery(‘.spu-close’).trigger(‘click’);
    return false;
    });
    });
    </script>

Viewing 1 replies (of 1 total)
  • Plugin Support gonzalesc

    (@gonzalesc)

    Hi.
    You not need do it. All the links inside of popup will do a conversion and will close the popup.

    Or you can create a link or button with the class “spu-close-convert”

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Adding close action by javascript’ is closed to new replies.