jQuery改变form表单的action,并进行提交的实现代码

jQuery改变form表单的action,并进行提交的实现代码

<s:form action="/student/traScore.action?method=list" id="queryForm" name="queryForm">
</s:form>

//导出学生实训成绩
function exportScore(){
  var path = "${ctx}/student/traScore.action?method=exportExcel";
  $('#queryForm').attr("action", path).submit();;
}

相关推荐