I have a structure like this inside a parent DIV:

H3
P
P
H3
P
P
P
H3
P
P

And I'd like to be able to get the paragraphs between two heads, or between the last head and the end of the parent DIV. Element.adjacent('p') doesn't do what I need -- it returns all the p tags in the entire DIV, since everything is at the same level. If I get a reference to the first element following the head, how could I get all similar elements up to but not including the next head? I'm trying to find a purely structure based way to do this, rather than adding classnames to the elements.

Thanks,

Walter

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to