Javascript help

  sitem 23:15 12 Sep 2006
Locked

I'm trying to show/hide elements on a page using JS. I've got some code to do this using the id attribute, which works fine. What I want to do though is show/hide multiple instances of the same element but cannot find any code to do this. Is it possible to do this, and if so, can anybody provide any code please? If it helps, the code only needs to work on IE5.5 and 6.

  ade.h 12:41 13 Sep 2006

I'm not very familiar with this side of javascript, but if you're using IDs, could you use classes instead? Apply a class to each group of elements.

  sitem 22:40 13 Sep 2006

My knowledge of javascript is also limited, but JS doesn't seem to recognise classes for this purpose. I have come across class.Name but can't get this to work. Don't know if it should?

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

The Evil Within 2 review-in-progress

Photoshop CC 2018 released with new Curvature Pen and better brush tools

Camera tips to take better iPhone photos

Les meilleures applications de covoiturage 2017