Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter drymartini

    (@drymartini)

    found a solution. is there any better one?
    <script>
    function isEmail(email) {
    var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    return regex.test(email);
    }
    (function($) {
    $(document).ready(function(){
    jQuery(‘.tnp-button’).click(function(){
    if(isEmail(document.getElementsByClassName(“spu-box”)[0].getElementsByClassName(“tnp-email”)[0].value)){
    document.getElementsByClassName(“spu-box”)[0].getElementsByClassName(“newsletter”)[0].submit();
    }
    });
    });
    })( jQuery );
    </script>

    Plugin Author Damian

    (@timersys)

    HAve you tried disabling ajax mode in the popup settings?

    Thread Starter drymartini

    (@drymartini)

    yes i did that already. no success. any other clue?

    Plugin Author Damian

    (@timersys)

    What’s the shortcode to display the form? I can’t find it on the docs of newsletter. I want to try on my local copy to see what is happening.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Newsletter Plugin Shortcode not working’ is closed to new replies.