tags:

views:

37

answers:

1

Hi to all!

What is the javascipt code that will edit a text on double click. The process is I have a text and if I double click it, a text box will appear, and if I press enter the word will change depends on what you've type.

Sample

This is sample text. $nbsp;$nbsp; --> if I double click it a textbox will appear.
<input type="text" value="This is sample text." name="" />

Sorry for asking this. I am a newbie in javascript

+1  A: 

Here is a great example.

JacobM
Thank you for the link.
Jordan Pagaduan