Home > Web Front-end > JS Tutorial > How to make the text in the cell editable after clicking on the cell_javascript skills

How to make the text in the cell editable after clicking on the cell_javascript skills

WBOY
Release: 2016-05-16 19:25:17
Original
1001 people have browsed it

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.


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]

2,

[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute
]
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template