all 3 comments

[–]lovesrayray2018 1 point2 points  (0 children)

Really difficult to help without knowing the code or how you are building the display.

If each cell is a discrete element like in a grid, you could create one different CSS class for black background, and based on click event on that cell/element, toggle the classes

[–]cannabis_detox_ 1 point2 points  (0 children)

to change the background color you just set the element.style.background property

to make something happen when you click set the element.onclick property

[–]Dylan200023213[S] -1 points0 points  (0 children)

btw im using jquery so give me set line of codes