Rows and lines defining
I'm trying to highlight the rows and lines of each number when it's pressed. But some of the numbers highlight the wrong lines/rows. How can I fix it? https://code.sololearn.com/WbSzkt2tDa9J/?ref=app UPDATE: fixed it by searching by the index of the html element instead of searching by the numbers (due to repeating numbers/values).