<ul id='group_top'> <li class='team'><input type='text' id='txt"+ ++i +"' readonly /> <input type='text' id='txt"+ ++i +"' /> <input type='text' id='txt "+ ++i +"' /> <input name="" type="button" value="删 除" onclick="delteam_onclick(this)" />
</li> <li class='team'><input type='text' id='txt"+ ++i +"' readonly /> <input type='text' id='txt"+ ++i +"' /> <input type='text' id='txt "+ ++i +"' /> <input name="" type="button" value="删 除" onclick="delteam_onclick(this)" />
</li>
</ul>
<script language="javascript">
function delteam_onclick(obj)
{
if(obj!=null && obj.tagName!=null)
{
obj.parentElement.removeNode(true);//IE only
//var tempobj = obj.parentElement;
//tempobj.parentElement.removeChild(tempobj);
}
}
</script>
</li> <li class='team'><input type='text' id='txt"+ ++i +"' readonly /> <input type='text' id='txt"+ ++i +"' /> <input type='text' id='txt "+ ++i +"' /> <input name="" type="button" value="删 除" onclick="delteam_onclick(this)" />
</li>
</ul>
<script language="javascript">
function delteam_onclick(obj)
{
if(obj!=null && obj.tagName!=null)
{
obj.parentElement.removeNode(true);//IE only
//var tempobj = obj.parentElement;
//tempobj.parentElement.removeChild(tempobj);
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货