Using your "myclass" example, the enhanced .siblings() method might be
used like this:

$("DIV").siblings("SPAN.myclass:first", false, "next")

Not ethat this will return all the SPANs with classname "myclass" that
follow all the DIVs, so as it stands it it probably no different from
the standard jQuery syntax: $("DIV").siblings("SPAN.myclass"). My
solution will make more sense when trying to find the SPAN that
follows an individual DIV, eg: $
("DIV:contains(first)").siblings("SPAN.myclass:first", false, "next")

George

Reply via email to