Your click event seems to work fine on my table, I'm just wondering how you deselect by clicking again? binding a variable to whether it is selected seems like a simple solution, but how would I do it?
Forgive me for answering your question with another question and my novelty for JS.
user187183
source
share