We help IT Professionals succeed at work.

Looping through each <span>?

Silvio Fumei
Silvio Fumei asked
on
122 Views
Last Modified: 2018-01-15
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.
Comment
Watch Question

CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Software Developer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Silvio FumeiIncident Manager

Author

Commented:
Thanks. I've managed to get the results I wanted now.  :)
Alex [***Alex140181***]Software Developer
CERTIFIED EXPERT

Commented:
You're welcome ;-)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.