This can be used to create a dynamic form in javascript using jQuery.  Useful for buttons on dynamic lists.

$('<form action="form2.html"></form>').appendTo('body').submit();

 Remember to use the ".appendTo" part to attach the form to the body of the document to match the HTML spec.

Another example:

$('<form action="projdetails.php" method="post"> \

<input type="hidden" name="projID" value="' + projID + '"> \

</form>').appendTo('body').submit();