How to use JAVASCRIPT to realize that when the corresponding cell is clicked, the text in the cell becomes editable INPUT or SELECT, and after leaving the cell, the text in the cell becomes the modified text.
I use the following method to turn a clicked cell into INPUT, but I don’t know how to restore the text state after clicking on other cells and how to return the value modified after INPUT. Is there a better way to achieve this effect.