Submit a form which is not in the DOM

Submit a form which is not in the DOM

Hi,

I have a form in my webpage that I would like to submit to a different action in a _blank window, but without changing the original form.

So I've tried this :

  1. $('#myform').clone().attr('action', '/something/else').attr('target', '_blank').submit();

But it won't submit unless I append the new form in the page (which I don't want).

Is there any way I can achieved this?