I am facing an issue with two HTML tables. The cell values in both tables are changing every 3 seconds and the background color of each cell is set based on the value from the previous cycle. Additionally, a setTimeout function is used to reset the background color of the cells after 2 seconds.
The problem I am encountering is that the setTimeout functions are only working for the last cell in the cycle.
Note: Each cell in my application has its own cycle for changing values, so the reset function for background color should work for each individual cell, not all at the same time.
I have provided an example on JsFiddle. Can anyone provide assistance with this issue?