Thank you!  I'm not able try this yet, but I assume it will work as
expected.  Jquery really makes a lot of complex things very
simple....well, I guess, simple if you know what you're doing.  I need
to figure this out!

Thanks again.

jp

On Dec 29, 8:56 pm, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > $("#PageTemplateForm h4 a").each(function(){
>
> > I can see why that wouldn't work, because the "expand" div would would
> > likely be inserted in the wrong place.  How would I distinguish
> > between h4s followed by links vs h4s not followed by links?
>
> How about the :has() selector?
>
> $("#PageTemplateForm h4:has(a)")
>
> That would only give you the h4 elements that contain an a element.

Reply via email to