@kowai-onigiriSubmitted over 2 years ago
The one issue I would like to continue working on is making sure that the user can only choose one rating (only one number button click will be logged and passed into the display number.
The one issue I would like to continue working on is making sure that the user can only choose one rating (only one number button click will be logged and passed into the display number.
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 } });