How can we use JavaScript to trigger more than one button? I have 4 buttons. When button 1 is press I want it to auto press button 2 3 and 4 but it should wait 1 second between each press.
<script>
<button id="2" onclick="myFunction()">Click me</button>
<button id="3" onclick="myFunction()">Click me</button>
<button id="4" onclick="myFunction()">Click me</button>
</script>
<body><button id="1" onclick="myFunction(buttons)">Click me</button> </body>