Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Javascript: Loop through ids

JavaScript loop

  • Please log in to reply
1 reply to this topic

#1 dirkfirst


    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 351 posts

Posted 18 June 2007 - 10:55 AM

I have several IDs:

<div id="1"></div>
<div id="2"></div>
<div id="3"></div>

Is there a way I can loop through each ID so that I can call each div by ID and change their style?
  • 0

#2 Crane


    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 388 posts

Posted 02 July 2007 - 11:28 AM

I'm not sure this is possible on div ids. I know you can do it with a form.
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download