[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Matt M.
That works great. Thanks! On May 14, 3:01 pm, Bryan wrote: > Try this > > var ans = $("#carousel li a.active").parent().attr("carouselindex"); > > Cheers, > Bryan > > On May 14, 2:49 pm, "Matt M." wrote: > > > Hello, > > > I have been learning jQuery and have been loving it so far. But can't >

[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Bryan
Try this var ans = $("#carousel li a.active").parent().attr("carouselindex"); Cheers, Bryan On May 14, 2:49 pm, "Matt M." wrote: > Hello, > > I have been learning jQuery and have been loving it so far. But can't > figure out how to do the following... > > 1) Find the inside a that has an act

[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Bryan
Try this... var answer = $("#carousel li a.active").parent().attr ("carouselindex"); Cheers, Bryan On May 14, 2:49 pm, "Matt M." wrote: > Hello, > > I have been learning jQuery and have been loving it so far. But can't > figure out how to do the following... > > 1) Find the inside a that has