Link to home
Start Free TrialLog in
Avatar of Silvio Fumei
Silvio Fumei

asked on

Looping through each <span>?

Is there a way of "looping" through each <span> on a webpage using javascript? I have a buch (about 50) span-tag, with different id, and I want to loop through eacxh one in order to run a condition on wheter to hide it or not.
SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Silvio Fumei
Silvio Fumei

ASKER

Thanks. I've managed to get the results I wanted now.  :)
You're welcome ;-)