wrote on 27 aug 2005 in comp.lang.javascript
:
I have an DIV with the contentEditable attribute. How can I get the
value of the content within that DIV after the user has edited it for
further processing. I'd like to store the HTML code within the DIV to a
hidden INPUT. Thanks for your help!
<div id=d contentEditable>
....
<input type=hidden id=p>
....
function ... {
document.getElementById('p').value =
document.getElementById('d').innerHTML
}
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)