<form method= "POST" action= "id=" Subform "Name=" Form1 ">
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
</form>
The navigation bar has bulk delete (onclick= "Delall ()") and bulk Download (onclick= "Downall ()") two buttons
First case: There is no submit button in the form (submit)
JS Inside Write:
Delall () {
Document.form1.action= "__app__/document/collection/delfile"; Change the value of the action within the form
$ ("#subForm"). Submit (); Submit Form
}
Downall () {
Document.form1.action= "__app__/document/collection/downfile";
$ ("#subForm"). Submit ();
}
Second case: There is a submit button in the form
Delall () {
Document.form1.action= "__app__/document/collection/delfile"; Change the value of the action within the form
}
Downall () {
Document.form1.action= "__app__/document/collection/downfile";
}
Let a form be submitted to two different methods according to different situations