骞没蕴 发表于 2016-1-4 13:15:19

Change Hyper link to form to submit

  1 this is a hyper link
  <a href="javascript: personDetail('${benefitList.benefit.childId}', '${caseNbr}')">${fisrstNm} ${lastNm}</a>
  
  
  <s:form name="voucherInfoForm" method="post"  action="/auth/auth_detail.eppic">
  <s:hidden name="childId" value="" />
  <s:hidden name="caseNbr" value=""/>
</s:form>


<script language="javascript">

function personDetail(personId,caseNbr)
{
  document.voucherInfoForm.childId.value = personId;
  document.voucherInfoForm.caseNbr.value = caseNbr;
  document.voucherInfoForm.submit();
}
  
  </script>
页: [1]
查看完整版本: Change Hyper link to form to submit