Hi Guys,

I need you small help. I need to fix this code for show and hide the pictures.

The issue is the undo. When I enter the value in the cell then I press enter to proceed another row. And when I click the undo (ctrl + z) to return in the 1st row but this is not working.

Here the code:

HTML Code: 
Thanks advance.