Hi,
I'm having a bit of trouble with a script I'm trying to write. I'm making a folding menu using <UL> tags which all have that same ID ('foldinglist'). How can I make all of the <UL> tags with the ID 'foldinglist' hide at the same time. This is what I'm trying to use, but I guess it's wide of the mark.
Do I suck or am I close? Thanks in advance.
Phil
PS: Can anyone point me at some good documents about document.getElementsByTagName and document.getElementsByID? Thanks.
I'm having a bit of trouble with a script I'm trying to write. I'm making a folding menu using <UL> tags which all have that same ID ('foldinglist'). How can I make all of the <UL> tags with the ID 'foldinglist' hide at the same time. This is what I'm trying to use, but I guess it's wide of the mark.
Code:
HideList = document.getElementsByTagName("ul");
HideList['foldinglist'].style.display=="none"
Phil
PS: Can anyone point me at some good documents about document.getElementsByTagName and document.getElementsByID? Thanks.