I
I
Insolation2018-03-03 02:35:42
css
Insolation, 2018-03-03 02:35:42

How to switch states?

Guys, a question.
I have some text, when you click on it, the input should drop out to change the text, and when we changed the text and click outside the inputa, everything should go back (that is, the input will change to text). So I don't know how to make this return.
https://jsfiddle.net/tvcdafLc/2/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-03-03
@Insolation

Maybe it's better to use inline editing?
Like here : double-click - editing, double-click again - turn off editing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question