This:  var preBefore = $('p:eq(3)').prev('pre').text();

Only grabs the text of the preceding text contained within the <pre>
tag.  If you need all the <pre> tags prior, then use prevAll()

http://docs.jquery.com/Traversing/prevAll

Joe

http://www.subprint.com

On Jan 19, 5:03 pm, JLundell <jlund...@pobox.com> wrote:
> Thanks, guys. nextUntil() looks like what I need.
>
> Joe, am I right that your suggestion grabs all the following pre's? I
> need to stop on the first following non-pre.

Reply via email to