<table width="100%" class="table_form"> <tr> <td>奖励深度(<a href="javascript:add_tjjl_sel();">添加</a>|<a href="javascript:del_tjjl_sel();">删除</a>)</td> <td id="tjjl_deep"> <span><em>1</em><input type="text" value="1"/></span>
</td>
</tr>
</table>
jQuery:
function add_tjjl_sel(){
$("#tjjl_deep").append($("#tjjl_deep").children().eq(0).clone());
}
function del_tjjl_sel(){
if($("#tjjl_deep").children().last().index() != 0){
$("#tjjl_deep").children().last().remove();
}
}