62,046
社区成员
发帖
与我相关
我的任务
分享
$("#add_new").click(function(){
$(this).parent().parent().next().find("table").append("<tr><td class='detail' style='width: 10px'>
<img title='取消' src='Images/Main/Default/delete.gif' style='cursor:pointer'/>
<td class='detail' style='width: 10px'><input type='text' value=''/></td>
</tr>");
$("#itemtab").find("img[title='取消']").each(function(){
$(this).click(function(){
if(confirm("确认删除新增的行吗?")){
$(this).parent().parent().remove();
}
})
});
});