append a form and submit jqquery code example
Example: create a form and submit it dynamically jquery
$(function() {
$('<form action="form2.html"></form>').appendTo('body').submit().remove();
});
$(function() {
$('<form action="form2.html"></form>').appendTo('body').submit().remove();
});