[jQuery] Re: Quick question, basic stuff

2009-08-26 Thread Paolo Chiodi

one way could be $('div.pic:eq(1)').find('ul li a:eq(2))

Paolo

On Wed, Aug 26, 2009 at 12:17 PM, Bartyourps3playsps1ga...@gmail.com wrote:

 Hi all,

 In a HTML document I'm having a few divs with the same class. In each
 of this divs is nested an unordered list with inside the list items
 some anchors. I'm trying to find a certain jquery expression which
 says I want link#3 from div#2. I've tried;

 $(div.pic:eq(1) ul li a:eq(2)).hide();

 which doesn't seem to work... I think because you can't have :eq()
 twice as selector. How would I make this work?


[jQuery] Re: Quick question, basic stuff

2009-08-26 Thread Bart

Thanks! I'll try that, just for my knowledge, any other ways?

On Aug 26, 12:50 pm, Paolo Chiodi chiod...@gmail.com wrote:
 one way could be $('div.pic:eq(1)').find('ul li a:eq(2))

 Paolo



 On Wed, Aug 26, 2009 at 12:17 PM, Bartyourps3playsps1ga...@gmail.com wrote:

  Hi all,

  In a HTML document I'm having a few divs with the same class. In each
  of this divs is nested an unordered list with inside the list items
  some anchors. I'm trying to find a certain jquery expression which
  says I want link#3 from div#2. I've tried;

  $(div.pic:eq(1) ul li a:eq(2)).hide();

  which doesn't seem to work... I think because you can't have :eq()
  twice as selector. How would I make this work?