form form switch action value, different button submit

//form form switch action value, different button submit

<form method="post" rel="pagerForm" name="form1"

action="${pageContext.request.contextPath}/account/tbClientLog/list"

onsubmit="return navTabSearch(this)">

 

<li>

<div class="buttonActive">

<div class="buttonContent">

<button type="submit">搜索</button>

</div>

</div>

<div class="buttonActive">

<div class="buttonContent">

<button type="button" onclick="VerifyOP('${pageContext.request.contextPath}/account/tbCusFirmChg/customerListXLS');">导出</button>

</div>

</div>

</li>

 

  function VerifyOP(sAction){

 document.form1.action = sAction;

 document.form1.submit();

 }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326516930&siteId=291194637