I have the following jQuery code running:
$('a.testlink').click(function() {
var $essay = $(".tinyeditor iframe").contents().find("body").clone();
$essay.appendTo("div.test");
});
As you can see, it is finding the contents of "body" inside an iframe (same source); and appending it to a div.
The above code works fine. But if I change the appendTo from a div to a textarea, it doesn't work.
What am I doing wrong?