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 familiar with JavaScript must know that JS can dynamically change the value of the action in form forms as follows:
Document.myForm.action = "userinfo.shtml";
Note that the form label must have the name attribute, the light has ID no name does not function
document.myform.attributes["action"].value = "XXXXXXXX";
document.all ("Myformid"). setattribute ("Action", "value of the action to be assigned");
Both of these methods have been tested in JavaScript.
--------------------------------------------
Here's how to set the value of the action in form forms in jquery.
$ ("#myFormId"). attr ("Action", "userinfo.shtml");
"Note":$ ("#myFormId"). action= "XXX"; This kind of writing is not working!
In this jquery set form form in the implementation of the action is a small series to share all the content, hope to give you a reference, but also hope that we support the cloud-dwelling community.