Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- change classname not work with nextSibling


JAB_Creations - 6:49 pm on Apr 9, 2011 (gmt 0)


When you call toggle(button) you'll have to send a specific object already created (e.g. )document.getElementById('element_id_here'). Therefore try alerting (e.g. alert(button); and alert(typeof button)) in the first line of that function.

Also Opera is excellent for debugging JavaScript and unfortunately for some reason Firefox hides a few JavaScript errors that don't make it past Opera for some reason.

Good job for opting to use the DOM. :)

- John


Thread source:: http://www.webmasterworld.com/html/4293548.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com