jQuery.form plugin - iframe submit, script response.

jQuery.form plugin - iframe submit, script response.

I am having problems with the jQuery form plugin www.malsup.com/jquery/form when submitting using an iframe and expecting a script back that creates dom elements. It appears that the browser escapes the script text with < and > escaping for html escaping and thus when I have code like

$("<div>woohoo</div>")

the code does not evaluate into a dom element, rather into text because the script actually sees:

$("&lt;div&gt;....");