[Solved] Html button who can load/fire multiple JS/button in each div


Determine a way to identify the button. For example, if your page looks like this:

<header> ... </header>
<section id="songs">
    <button>...</button>
    <button>...</button>
    <button>...</button>
</section>

… then you could get a list of buttons with:

var buttons = document.getElementById("songs").getElementsByTagName("button");

Then loop through the buttons, and call button.click().

1

solved Html button who can load/fire multiple JS/button in each div