Custom Code for OnClick event

Hey guys,

I am a beginner to web development. I was trying to mock a spreadsheet like interaction.
Can somebody help me with a custom code for making cell selection appear/disappear based on the cell being clicked on?

Here’s the link to prototype : https://cell-prototype.webflow.io/