I called button to display event in document.querySelector. but return null. Thanks you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I called button to display event in document.querySelector. but return null. Thanks you.

called button to display event function setRow and setColumn. https://code.sololearn.com/Wm5SwSiDj63Q/?ref=app

24th Jul 2021, 4:56 PM
Malick Diagne
Malick Diagne - avatar
1 Answer
0
Incorrect console.log (document.querySelector ("el.href") ); correct console.log (el.href); You already queried the DOM for the link object and assigned it to the var el so you don't have query the DOM again for the same object just us el.
25th Jul 2021, 12:56 AM
ODLNT
ODLNT - avatar