I have this code which highlights the selected table cell in green color by default.
I am seeking help with a function where there will be three buttons for three different colors, so when I click one of these buttons, the default highlight color will change to that selected color. I have fiddle here too : https://jsfiddle.net/eLb9x2pp/ Any help will be appreciated, I am not very familiar with javascript. And this is what I tried and did so far. but here highlighting doesn't work because of changes I made. https://jsfiddle.net/r94m7o8c/