<ul ).value=txt;
}
}
</script>
来源:http://www.jb51.net/article/50294.htm
document.getElementsByTagName("li")[index].id
如何用JavaScript获得ul中的li的个数?
document.getElementById('myul').getElementsByTagName('li').length
HTML DOM removeChild() 方法
var list=document.getElementById("myList");
list.removeChild(list.childNodes[0]);