thanks @mkmanning... it works perfectly.
On Apr 24, 12:35 am, mkmanning wrote:
> From the sample markup with the highlight classes, it looks like the
> OP wants to highlight anchors in the LI tags that are in direct line
> to the final anchor. In that case, just adding the class to all the
> anc
This looks promising. I'll give it a shot and report back.
On Apr 24, 12:35 am, mkmanning wrote:
> From the sample markup with the highlight classes, it looks like the
> OP wants to highlight anchors in the LI tags that are in direct line
> to the final anchor. In that case, just adding the cla
and since you're dealing with an entire UL rather than targeting
specific sections within the element, if you're dead-set on doing it
programmatically you might as well assign the class 'hilight' to the
UL rather than all the child A's
On Apr 24, 11:34 am, "ryan.j" wrote:
> it's easier as a CSS
and since you're dealing with an entire UL, rather than targetting
sections if you're dead set on doing it programatically you might
aswell assign the class hilight to the UL rather than all the child A
and have the css below to handle that
ul.hilight a { background-color:#f00; color:#fff; }
On
it's easier as a CSS jobby, rather than JS
ul:hover a { background-color:#f00; color:#fff; }
but that won't work in ie6 though.
On Apr 24, 9:26 am, Joseph Le Brech wrote:
> why do you need to give it a class programmaticaly?
>
> try this:
>
> $("ul a").addClass("highlight");
>
> http://docs.jq
Surely it's easier as a CSS jobby, rather than JS?
ul a { background-color:#f00; color:#fff; }
or
ul a:hover { background-color:#f00; color:#fff; }
On Apr 24, 9:26 am, Joseph Le Brech wrote:
> why do you need to give it a class programmaticaly?
>
> try this:
>
> $("ul a").addClass("highlight"
why do you need to give it a class programmaticaly?
try this:
$("ul a").addClass("highlight");
http://docs.jquery.com/Selectors/descendant#ancestordescendant
_
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.c
>From the sample markup with the highlight classes, it looks like the
OP wants to highlight anchors in the LI tags that are in direct line
to the final anchor. In that case, just adding the class to all the
anchors in each parent UL won't work. If you filter the results you
can achieve what your s
Assuming the base UL or any of it's parents are contained in another
UL (which would mess this up):
$(this).parents('ul').find('a').addClass('highlight');
On Apr 23, 5:00 pm, paulinstl wrote:
> Request: I want to highlight every "" within the parents of an
> object up to the base element of ""
9 matches
Mail list logo