• Resolved odedharel

    (@odedharel)


    Hello,

    I’m trying to open the modal on page load. Tried to put the link in the dom <a href="#omw-302" id="thank-you-modal" class="omw-open-modal">Open Modal</a>, also tried to append it to body with JS and then I tried some JS on document ready:
    $( '#thank-you-modal' ).get(0).click();
    $( '#thank-you-modal' ).click();
    $( '#thank-you-modal' ).trigger( 'click' );

    None of these options work, why?

    Thanks
    Oded

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author oceanwp

    (@oceanwp)

    Hello, it is not possible with this plugin, but I actually work on the Ocean ELementor Widgets premium plugin and I have added a Modal widget where you will be able to show the modal on page load, exit window or on a button click.

    Thread Starter odedharel

    (@odedharel)

    I see, thanks.

    Plugin Author oceanwp

    (@oceanwp)

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Programatically show modal’ is closed to new replies.