How to make editable div or paragraph by double clicking?

I want to make a simple div which has to become editable when a user double-clicks on it. I wish div to turn into element like text field with cursor to the text where double-click event occurred. Moreover, I want it to turn back into <div> after pressing Enter button. How to hack it?

»Javascript @ahsafudari



» 76 answers  » 277 views   1 like


Add photos






 • 13 hours ago
vpn service [url="https://addonsvpn.com"]what is vpn connection[/url] vpn for firefox »

0  Dislike  •  Reply


 • 2 weeks ago
kamagra oral jelly no presc kamagra suhagra generic viagra eroxim kamagra »

0  Dislike  •  Reply


 • 2 weeks ago
writing persuasive essays [url="https://dollaressays.com/?"]writing analytical essays[/url] write a essay for me »

0  Dislike  •  Reply


 • 3 weeks ago
online essay writing services [url="https://essayprepworkshop.com/?"]writing a good essay[/url] sample essay rubric »

0  Dislike  •  Reply


 • 3 weeks ago
writing essays about literature [url="https://checkyouressay.com/?"]persuasive essay topics[/url] good barista essay »

0  Dislike  •  Reply


 • 4 weeks ago
Riconia »

0  Dislike  •  Reply


 • 1 month ago
Buy Dutasteride Uk »

0  Dislike  •  Reply


 • 1 month ago
0  Dislike  •  Reply


 • 1 month ago
mobile sex games furry [url="https://sexgamesx.net/?"]google play sex games[/url] doctor sex games »

0  Dislike  •  Reply


 • 2 months ago
Kamagra Fast Shipping »

0  Dislike  •  Reply



Back to top

[SHARE THIS POST]: The post's archived Spread it to others!

Posted under this donnektish »
This community is about sharing contents such as questions and answers discussing about Javascript and TypeScript, ES5, ES6
90 people joined this donnektish



Maintain social distancing, to avoid Covid19