I am writing a program where users select their availability. I have a mouse over color, but I would like that color to be confirmed on click. The only problem with the below solution is that upon a second click the isn't reset. How do I get it to reset?
<td onclick="javascript:this.style.background = '#000000';">