Take the 2-minute tour ×

Given: a textarea and a button to insert a name placeholder for later replacement.

Now the button is just text: {firstname}, but I would like it to be an image, to use a full WYSIWYG for this is not how i want to implement it.

Is there a way to make a div typeable (change a div to an input field)?

I am thinking of making a inline input that will be focused on clicking the input div, and having a onkeyup functionality to append the inserted text into the div.

Any suggestions?

Any help is welcome! thanks!

share|improve this question
what again? anycode? –  Ross Dec 28 '10 at 12:59
What exactly you need to do? Any examples??? –  Vijay Dec 28 '10 at 13:01
you could look into the contentEditable div property html5demos.com/contenteditable –  Zevan Dec 28 '10 at 14:43
add comment


Your Answer



Browse other questions tagged or ask your own question.