white_horse — 2011-05-13T01:20:34-04:00 — #1
I'd like to create a textarea and a division so that whatever embed code you put in the textarea it gets executed on the division in real-time.
Your kind help is greatly appreciated!
white_horse — 2011-05-13T15:42:31-04:00 — #2
After hours searching and trying different approaches I came up to the following simple code:
document.getElementById("result").innerHTML = document.getElementById("input").value;
<textarea id="input" cols="35" rows="7"> X </textarea>