javascript表單提交

function toCaseDetail(caseId, backTo) { $("body").css("padding-top", parseInt(60) + 'px'); var pageNo = $("#pageNo").val(); if (pageNo == '' || pageNo == 'undefined') { pageNo = 1; } $("#caseForm1").find("input[name=caseId]").val(caseId); $("#caseForm1").find("input[name=backTo]").val(backTo); var url = "<s:url action='toCaseDetail' namespace='/console/engineer/ticket/ajax'/>"; document.caseForm1.action = url;//caseForm1表明的是表單action document.caseForm1.submit();//表明的是將表單提交. }css

相關文章
相關標籤/搜索