I called button to display event in document.querySelector. but return null. Thanks you. | Sololearn: Learn to code for FREE!

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

7/24/2021 4:56:15 PM

Malick Diagne

1 Answer

New 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.