I am trying to save backgroundColor of a table cell so I can reuse it.
Something like this;
var rNumber = document.getElementById(cell1);
var oldColor = rNumber.style.backgroundColor; <--- this doesnt work
rNumber.style.backgroundColor = 'yellow';
rNumber.style.backgroundColor = oldColor; <--- this doesnt work
I spent too much time trying to solve this very minor thing, if anyone know how to do this. Thank you!