Javascript events

I have a 16x16 grid which i created using Javascript. I wanted that when i click and hover over the cell of the grid then the background-color of the cells should change. Please any one help me if you had any idea because I have been researching nothing works.

if a thing in the grid is an html element you can use the :hover pseudo-selector

1 Like

You need to use css :hover and onclick event. Also you can do this with JQuery

1 Like

Whatever you can do with jQuery you can do with JavaScript

1 Like