Menu
If I have a section of a web page specified within a unique id <div> tag,
is it possible to transfer the contents of the tag to a <textarea> box?
I’ve tried this, but without success within the <BODY> section:
[code=php]
<div id=”testdiv”>
Information displayed
within the <div> region.
</div>
<button
onClick=”document.getElementById(‘TArea’).value=document.getElementById(‘testdiv’).innerHTML”
Transfer Information</button>
<textarea id=”TArea” rows=”8″ cols=”50″></textarea>
Thanks for any thoughts!.