jquery submit dynamically generated form 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();
});