Answer the question
In order to leave comments, you need to log in
How to pass event along with other parameters to the function?
document.querySelector('#color').addEventListener('click', activeEl('clr', 'color'));
document.querySelector('#color').addEventListener('click', event =>{....});
Answer the question
In order to leave comments, you need to log in
If I understood correctly
Well, pick up the third argument in the activeEl function itself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question