posted 6 years ago
I am creating a tictactoe game where i have 9 buttons. I have given an id to every button and added an addEventListener to the button. Now i to want to check the Winner, so i need to retrieve the button id's and find if the combination works.I have tried to retrieve using various notations it didn't work, here in this code i have posted it with buttonKey.id still its non-functional. How to retrieve that. Please help.