日期:2014-05-16 浏览次数:20375 次
<div id="list">
<table width="100%" border="1">
<tr>
<td height="25"><span style="color:#f00">*</span> 专业</td>
<td><input type="text" name="job_major" size="50" onblur="check_major();"/></td>
</tr>
<tr>
<td>专业描述</td>
<td><textarea cols="100" rows="15" name="job_Professional_description">
</textarea></td>
</tr>
</table>
</div>
<span id="add">继续添加</span>
//不要再使用font标签,因要复制就不要设置ID
<script type="text/javascript">
window.onload=function(){
var oTab = document.getElementById("list");
document.getElementById("add").onclick=function(){
oTab.appendChild(oTab.children[0].cloneNode(true));
}
}
</script>