Is there a way in jQuery to create and submit a form on the fly?
Something like below:
<html>
    <head>
        <title>Title Text Goes Here</title>
        <script src="http://code.jquery.com/jquery-1.7.js"></script>
        <script>
            $(document).ready(function(){alert('hi')});
            $('<form/>').attr('action','form2.html').submit();
        </script>
    </head>
    <body>
        Content Area
    </body>
</html>
Is this supposed to work or there is a different way to do this?
 
     
     
     
     
     
     
     
     
     
     
     
     
     
    