$("#userBaseInfo2").prepend($(".cls").clone(true));
例如下:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<title>个人投资者审核详细信息</title>
<link rel="stylesheet" href="css/styles.css" type="text/css"></link>
<script type="text/javascript" src="script/putils.js"></script>
<script type="text/javascript" src="script/jquery-1.4.4.js"></script>
<script type="text/javascript" src="script/see-utils.js" charset="utf-8"></script>
<script type="text/javascript">
function turnto(){
alert("目前该功能不能实现");
}
function proc1(){
$("#userBaseInfo1").submit();
}
function proc2(){
$("#userBaseInfo2").prepend($(".cls").clone(true));
$("#userBaseInfo2").submit();
}
</script>
</head>
<body>
<div class="main-content-wraper">
<div class="content-wraper">
<div class="page-loc-navi-div">
<span>当前位置</span>
<span>> <a href="index" target="_top">首页</a> ></span>
<span class="current">信息审核</span>
</div>
<div class="input-div">
<form action="manage/auditResultProc" method="post" id="userBaseInfo1" >
<table class="table-style-default">
<tr>
<td>
<span class="input-title">姓名:</span>
</td>
<td>
<span class="input-title">${p.name}</span>
</td>
<td>
<span class="input-title">性别:</span>
</td>
<td>
<span class="input-title">${p.sexStr}</span>
</td>
</tr>
<tr>
<td>
<span class="input-title">证件类别:</span>
</td>
<td>
<span class="input-title">身份证</span>
</td>
<td>
<span class="input-title">证件号码:</span>
</td>
<td>
<span class="input-title">${p.travelNum}</span>
</td>
</tr>
<tr>
<td>
<span class="input-title">证件地址:</span>
</td>
<td>
<span class="input-title">${p.travelAddress}</span>
</td>
<td>
<span class="input-title">联系地址:</span>
</td>
<td>
<span>${p.provinceStr}</span>
<span>省</span>
<span>${p.cityStr}</span>
<span >市</span>
<span>${p.unitAddress}</span>
</td>
</tr>
<tr>
<td style="width:500px;">
<span class="input-title">邮编:</span>
</td>
<td>
<span class="input-title">${p.unitPost}</span>
</td>
<td style="width:600px;">
<span class="input-title">联系电话: </span>
</td>
<td>
<span class="input-title">${p.unitTelephone}</span>
</td>
</tr>
<tr>
<td>
<span class="input-title">手机号码:</span>
</td>
<td>
<span class="input-title">${p.unitMobile}</span>
</td>
<td>
<span class="input-title">电子邮箱:</span>
</td>
<td>
<span class="input-title">${p.unitEmail}</span>
</td>
</tr>
<tr>
<td>
<span class="input-title">委托方式:</span>
</td>
<td>
<span class="input-title">${p.comWayStr[0]} ${p.comWayStr[1]}</span>
</td>
<td>
<span class="input-title">职业:</span>
</td>
<td>
<span class="input-title">${p.occupationStr}</span>
</tr>
<tr>
<td>
<span class="input-title">国籍和地区:</span>
</td>
<td>
<span class="input-title">${p.countryStr}</span>
</td>
<td>
<span class="input-title">学位/学历:</span>
</td>
<td>
<span class="input-title">${p.educationStr}</span>
</td>
</tr>
<tr>
<s:iterator value="p.listFile" status="s">
<td>
<span class="input-title"><s:property value="fileTitle"/></span>
</td>
<td>
<span class="input-title"><a href="manage/perInvestDetailInfo!download?fileCode=<s:property value="fileCode"/>&appSerialnumber=<s:property value="appSerialnumber"/>"><s:property value="fileName"/></a></span>
</td>
<s:if test="#s.index%2==1"></tr><tr></s:if>
</s:iterator>
</tr>
</table>
${message}
<p>
<label>审核人意见:</label>
<select class="cls" name="auditResult.opinionCode">
<s:iterator value="listResultCode">
<option value="<s:property value="code"/>"> <s:property value="result"/></option>
</s:iterator>
</select>
</p>
<textarea class="cls" name="auditResult.opinionCode_desc"></textarea><br>
<input id="pass" type="button" value="通过" onclick="proc1();">
<input name="auditResult.result" type="hidden" value="1">
<input class="cls" type="hidden" name="auditResult.username" value="${username}">
<input class="cls" type="hidden" name="auditResult.businessType" value="${businessType}">
<input class="cls" type="hidden" name="auditResult.appSerialnumber" value="${appSerialnumber}">
</form>
<input id="turnto" type="button" value="转交" onclick="turnto();">
<form action="manage/auditResultProc" method="post" id="userBaseInfo2">
<input type="hidden" name="auditResult.result" value="2">
<input id="turndown" type="button" value="退回" onclick="proc2();">
</form>
</div>
</div><!--content-wraper-->
</div><!--end of main-content-wraper -->
</body>
</html>