javascript Programming Glossary: divhtml
How do I make a div element editable (like a textarea when I click it)? http://stackoverflow.com/questions/2441565/how-do-i-make-a-div-element-editable-like-a-textarea-when-i-click-it copy the text html inside the div before replacing it var divHtml #myDiv .html or text whatever suits. Once we have the html from.. upto this point we get save the html within the div var divHtml #myDiv .html create a dynamic textarea var editableText textarea.. fill the textarea with the div's text editableText.val divHtml replace the div with the textarea #myDiv .replaceWith editableText..
|