Code Snippet: jQuery Edit In Place
- Detects surroundings and keeps the input container as either a block or inline display.
- Highlights text if it is the original text. If the text has changed, the entire text is not highlighted on edit.
- Easy customizable and styleable.
Test Input: Click here to change this text.
And this CSS: