954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

make text editable by clicking on it?

How would I make an normal form input field go from editable (where someone can write text into it) to solid text (not editable) simply by clicking anywhere on the page away from the field

And then..
..the reverse. Clicking on the non-editable text would suddenly create a form field (with that text in it) once again editable.

Possible with JavaScript?

Thanks for your responses!

devinodaniel
Light Poster
47 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

So right after I posted this I finally found this:

http://www.appelsiini.net/projects/jeditable

But it seems rather complicated. Is there an easier way?
Is it necessary to have a webserver/database?

Thanks

How would I make an normal form input field go from editable (where someone can write text into it) to solid text (not editable) simply by clicking anywhere on the page away from the field

And then.. ..the reverse. Clicking on the non-editable text would suddenly create a form field (with that text in it) once again editable.

Possible with JavaScript?

Thanks for your responses!

devinodaniel
Light Poster
47 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: