yes, I´ve checked the docs. I just remember that I´ve been reading it somewhere lately ... but maybe I´m wrong.
thanks. On 3 Apr., 17:01, MorningZ <morni...@gmail.com> wrote: > Not sure if that's possible, the documentation makes no references to > be able to do so > > http://docs.jquery.com/Selectors/descendant#ancestordescendant > > On Apr 3, 10:44 am, patrickk <patr...@vonautomatisch.at> wrote: > > > hmm. that´s not what I mean - I thought the ancestor (using a ancestor > > - descendant selector) can be retrieved without using another DOM- > > lookup. > > > On 3 Apr., 16:24, MorningZ <morni...@gmail.com> wrote: > > > > how about > > > > $("div:has(a)").each(function() { > > > var $div = $(this); //Here's the div > > > var $a = $div.find("a"); //Here's the link > > > > }) > > > > On Apr 3, 9:56 am, patrickk <patr...@vonautomatisch.at> wrote: > > > > > when using something like: > > > > > $('div a').each(function() { > > > > // what´s the easiest way to get the "DIV" here? > > > > > } > > > > > "div" doesn´t need to be a parent of "a". so, I need to know the exact > > > > location (DOM-wise) of my links to get the "div". I can somehow > > > > remember that there´s an extremely easy way to get the "div", but > > > > unfortunately I can´t remember ... > > > > > thanks, > > > > patrick > >