I am new to Daniweb, but I have browsed the forum here for a while and it has often solved problems of mine, so now that I encountered a pickle which I cannot seem to solve in a satisfactory way using only googling, I'm asking for some hands on help:
However, the catch is that she will not be allowed to use the innerHTML property.
So, to the question: how would one go (if it is possible, but I highly doubt it isn't) with making something like
var x = document.getElementById("id").innerHTML;
work the very same way, just not using innerHTML?
PS. I do feel this could be done in a more smooth looking and operating way by using the contentEditable attribute, but apparently the teacher asked for a textarea.
Thanks in advance for any help or constructive comments,
Edited by Chokladkakan: n/a