1 reply [Last post]
Protonman
Offline
newbie
Last seen: 15 years 32 weeks ago
Timezone: GMT+1
Joined: 2004-11-24
Posts: 2
Points: 0

Hi guys,

I have another newbie Q.
Is there a way to directly get say the 2- 5 element of e.g <div> tags from the "document.getElementsByTagName" function?

E.g. To only get the <div> tags in between two <h1> tags and not get all the <div> tags of the whole page?

Help much appreciated

Thanx

Protonman

Wranga
Offline
Regular
Last seen: 11 years 8 weeks ago
Joined: 2004-11-21
Posts: 22
Points: 0

A way to choose elements from &quot;getElementsByTagName&quo

h1+div {

}

I think that's right, cbf checking. It doesn't work in IE though.