Latest solutions
Latest comments
- @kowai-onigiri@Abdulmojeed58
I can relate 100%
Try and use the target event Add an event listener to the overall card, then target the button.(use e parameter)
document.querySelector(“.card”).addEventListener((“click”, (e) => { If(e.target.classList.contains(“btn”) { //your function } });
Marked as helpful