I'm trying to create a calculator app. But the event Listener associated with the buttons won't work except it's gotten with an "Id"
The buttons is located in a div with a class name of delButtons and when I tried using
const nButtons = document.querySelectorAll('.delButtons buttons');
Chrome dev shows that nButtons contains all the buttons but yet event Listeners assigned to them are not active.
This method works when used with the input elements of type buttons and event Listener associated with are active. Why is the case different with buttons
Ps: the buttons are not nested in a form so they have no type.