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

    I’m using a toggle to hide the woocommerce billing details on the checkout page for returning customers. However there may be occasions when these are incomplete and need to be displayed. Is there a way to open a toggle programmatically without a user having to click it?

    #268222

    Hi Neil M!

    You can trigger a click event with jQuery:

    
    jQuery("p[data-fake-id='#toggle-id-1']").trigger('click');
    

    Best regards,
    Josue

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