From: http://blog.sina.com.cn/s/blog_495e3d130100puqa.html
HTML code:
<form id= "Myformid" name= "MyForm" action= "method=" POST ">
<input type=" hidden "id=" Inparam "Name=" Inparam "/>
<input type=" hidden "id=" Tstype "name=" Tstype "/>
<input type=" hidden "id=" ZD "Name=" Zd "/>
</form>
A friend who is familiar with JavaScript must know that JS can dynamically change the value of the action in the form, as follows:
Document.myForm.action = "userinfo.shtml";
Note that the form tag must have the name attribute, the light has an ID without name does not work
document.myform.attributes["Action"].value = "XXXXXXXX";
document.all ("Myformid"). SetAttribute ("Action", "value of action to be assigned");
Both of these methods are tested in JavaScript.
--------------------------------------------------------------------------------------------------
Here's how to set the value of an action in a form form in jquery.
$ ("#myFormId"). attr ("Action", "userinfo.shtml");
"Note": $ ("#myFormId"). action= "XXX"; This kind of writing is not working!