I currently have a wysiwyg iframe where the user can submit input to another area on the page. Once the iframe input is submitted, I set it to clear the content. I want to also
Figured it out. I had to simply focus on the parent. And Jitter is correct, since I already declared it as a jQuery object, it needn't be wrapped.
Working code:
postContentClr = $("iframe#textarea1IFrame").contents().find("body")
postContentClr.html("").parent().focus();
I'm not sure I understand what you are trying to do, but postContentClr
is a jQuery object, so calling html()
requires that you access it via jQuery like so:
$(postContentClr).html('').focus();