View Single Post
Old 05-18-2008, 10:24 PM   #2 (permalink)
Ken
The Visitor
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Ken is on a distinguished road
Default

Missing the closing parentheses after
Code:
alert(byid.childNotes[2]);// shows second li item
and
Code:
alert(link.getAttribute("link");
Try using Firebug when you're running these programs - it catches simple errors like this.

Also -
In document.getElementsByTagName you need to have Elements not Element.

byid.childNodes instead of byid.childNotes

document.getElementById with a capital B
Ken is offline  
Reply With Quote
The Following User Says Thank You to Ken For This Useful Post:
sarmenhb (05-20-2008)