I'm trying to target a specific button with a javascript element.click() command. I found a way to select an element by class but until now cannot find a way to target the combination of class="pab-launcher" data-pab="stap4"
I want to use this to skip steps in a form based on the users input.
I think it should be something like:
document.getElementById("pab-launcher").click();
The button has these html definition, how do I add the data-pab="stap-4" attribute?
<div class="pab-launcher" data-pab="stap4" data-pab-trigger="click" data-pab-action="toggle" offerte=""> <button class="button medium hollow radius warning " aria-label="Volgende" type="button"><span class="show-for-sr">Volgende</span><span aria-hidden="true">Volgende</span></button>
</div>