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?
Hi Neil M!
You can trigger a click event with jQuery:
jQuery("p[data-fake-id='#toggle-id-1']").trigger('click');
Best regards,
Josue