1
2var myUL = document.getElementById("myUL");
3var list = myUL.children.tags("LI");
4alert(list.length);
5
6
1var ul = document.getElementById("myul");
2var liNodes = [];
3
4for (var i = 0; i < ul.childNodes.length; i++) {
5 if (ul.childNodes[i].nodeName == "LI") {
6 liNodes.push(ul.childNodes[i]);
7 }
8}
9