Mulled this around a bit.  jQuery does not give simple selectors
(though perhaps some plugins do) for text nodes.  However, you can
create your own function which iterates and finds text nodes, see:
 
http://groups.google.com/group/jquery-en/browse_thread/thread/ee88f95eb53823d1/45d241d82d9f0081?lnk=gst&q=text+node&rnum=3&hl=en#45d241d82d9f0081

Once you have a text node, you can wrap it in a jQuery object and give
it a click hander, find its siblings, etc.  I suspect that you could
write a filter function that figures out what the previous sibling
header is, if any, for every text node, and only attach click events
to matching (text) nodes.

o

On Aug 1, 4:32 pm, DaveG <[EMAIL PROTECTED]> wrote:
> oliver wrote:
> > I think you will need to wrap the paragraphs in some
> > tag, <p> or <span> or something else.  
>
> This approach seems the most doable -- I'd have to wrap the elements
> with jQ. Essentially I'd want to wrap all DOM elements between headers
> in a div tag.
>
> Anyone have suggestions of other more efficient ways to accomplish this?
>
>   ~ ~ Dave

Reply via email to