I think he just wants to select anything without a certain class
eg
$("div:not('.abc')")

Michael Lawson wrote:

mmm a little more information in regards to what exactly you want to do but

$('div').eq(i); where i is the index of the div you want to access

alternatively you could also do $('div:eq(i)');

cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone: 1-276-206-8393
E-mail: [email protected]

'Whether one believes in a religion or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'

Inactive hide details for "David .Wu" ---08/03/2009 09:37:41 AM---if I have 3 div, how to filter the div without class abc?"David .Wu" ---08/03/2009 09:37:41 AM---if I have 3 div, how to filter the div without class abc?


From:   
"David .Wu" <[email protected]>

To:     
"jQuery (English)" <[email protected]>

Date:   
08/03/2009 09:37 AM

Subject:        
[jQuery] a select question

------------------------------------------------------------------------




if I have 3 div, how to filter the div without class abc?

<div></div>
<div class="abc"></div>
<div></div>


Reply via email to