Retain css of aready clicked element

Retain css of aready clicked element

Dear All

Please refer


In this script 
I had made following provision

On mouse hover the class is changes and
On click the class is changed

However we want to retain the class of cell which is already clicked

Let us assume we click on 1st column.. the class of the cell is changed.

when i move cursor to another cell,  the class of the 1st cell is changed to normal.

How do i retain the the class of cell  till another cell is clicked
However on mouse over the class / will be changed .. as it is happening and is ok