From form multiple button submissions jump to different actions with onclick

  • 2020-03-30 02:42:27
  • OfStack

<form name="form1" method="post" action="ad/BusinessAction!list.action"> 

//The action submitted in the input box below is different, jump with onclick, and write a js method

<input type="button" class="mulButton" name="Ids" id="allcheck" onclick="manySend('ad/BusinessAction!sendmany.action')" value=" Batch import to successful cases "/> 


//The js method is as follows

function manySend(href){ 
var form = document.form1; 
form.action = href;//Pass the path to which you want to jump


Related articles: