hello kirupians
im having a hard time figuring this one out
I want to change the visibility property of a certain class. I can’t use unique IDs for the spans so I’m at lost. My html looks a bit like
<span class="details">version 1</span> Some awesome text <br />
<span class="details">version 2</span> More awesome text <br />
I’d like to change the .display = hidden of the ‘details’ class but can’t figure out how.
Any ideas ?
It seems I need to use getElementsByTag(‘details’) if I’m not mistaken, but I’m very confused !
Thanks =)
edit: it has to work on IE6 =(