Editing Div Text At Click Position

Posted by sonofdelphi on Stack Overflow See other posts from Stack Overflow or by sonofdelphi
Published on 2010-06-10T07:31:22Z Indexed on 2010/06/10 7:42 UTC
Read the original article Hit count: 367

Filed under:
|
|

I have a DIV which contains some text. When a user clicks on some content in the DIV, I want to enable him to edit the content at that position.

<div id='Note'>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, <br />
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <br />
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip <br />
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse <br />
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, <br />
sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
</div>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html