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!

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.