[jQuery] Submit form to a js created iframe target?

[jQuery] Submit form to a js created iframe target?


Hello,
I am trying to submit a form to a an iframe target.
I have the correct target name specified in the form, but a new page
loads (top) instead of in the desired iframe.
The iframe is created dynamically like so...
jQuery("body").append("<iframe id=\"myiframe\" ...></iframe>");
and the form looks like so ...
<form action="http://www.domain.com" target="myiframe" ...>
What do I need to do to make this work?