0
How to make N dynamic button clickable?
I have created N button dynamically , how to make it clickable so it can perform any other function on click ?
2 ответов
0
Adjust all N buttons to share the same class name. Afterwards, you can collect their references on page load, and add click event listener for each one.
0
collect them in an array and iterate the array.