• stoffer_dev

    (@stoffer_dev)


    Hi.

    I would like the register modal to pop up when the page loads, bit nothing has worked.

    I have tried the follwowing:

    $(document).ready(function () {
    $(‘.simplemodal-login’).click();
    $(‘.simplemodal-login’).trigger(‘click’);
    $(‘.simplemodal-login’).trigger(‘click.simplemodal-login’);
    });

    Any ideas?

    https://wordpress.org/plugins/simplemodal-login/

Viewing 1 replies (of 1 total)
  • Thread Starter stoffer_dev

    (@stoffer_dev)

    Fixed it =)

    jQuery(document).ready(function () {
    $(‘id of a tag’)[0].click(); //with class = “simplemodal-register”
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Open Register Modal from jquery’ is closed to new replies.