9
动态创建和提交表单
jQuery中有没有一种方法可以动态创建和提交表单。 像下面这样。 <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> 这应该可行吗,或者有其他方法可以做到这一点?