Click and change texts within the element

0

Given a search I found contenteditable , but I wanted to know if there is any other way to do this, by looking at some website builders who use this type of thing, I do not think any used contenteditable , since they do not I saw the attribute on any element of the entire page.

    
asked by anonymous 07.06.2016 / 00:13

1 answer

1

The forms I can think of are the following:

  • contenteditable=true
  • When clicking, convert to input or textarea (linkedin does so)
  • Make a JavaScript schema where it places an element on top, hide the previous one, and pass the value to the start element via innerHTML.
  • 07.06.2016 / 13:52