[Support request] Click button on page load with JS

Home Forums Support [Support request] Click button on page load with JS

Home Forums Support Click button on page load with JS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271180
    Tim

    I have a single accordion that I want open on page load

    I am trying to click the accordion on page load but not getting it, its the Subscribe button at the bottom of the browser
    http://aaa.greaterthanthesum.com/

    I have tried all the selectors I could find but none of the have worked

    $(document).ready(function () {
        $(".pp-er.pp-er-588cf9977df09.pp-er-open").click();
    });

    Any help is appreciated
    Thanks

    #271522
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    How are you adding the accordion? Have you tried using a plugin like this which takes care of the code for you?: https://en-ca.wordpress.org/plugins/jquery-collapse-o-matic/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.