[jQuery] Re: a select question

2009-08-03 Thread David .Wu

thanks a lot, this is exactly what I want :)

On 8月3日, 下午9時44分, Liam Potter  wrote:
> 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: mjlaw...@us.ibm.com
>
> > '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" 
>
> > To:        
> > "jQuery (English)" 
>
> > 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?
>
> > 
> > 
> > 


[jQuery] Re: a select question

2009-08-03 Thread David .Wu

thanks a lot, this is exactly what I want :)

On 8月3日, 下午9時44分, Liam Potter  wrote:
> 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: mjlaw...@us.ibm.com
>
> > '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" 
>
> > To:        
> > "jQuery (English)" 
>
> > 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?
>
> > 
> > 
> > 


[jQuery] Re: a select question

2009-08-03 Thread shangl

$('div[class*=abc]').function-you-need filters all div's, filters all
divs, which are not of the class abc

On Aug 3, 3:37 pm, "David .Wu"  wrote:
> if I have 3 div, how to filter the div without class abc?
>
> 
> 
> 


[jQuery] Re: a select question

2009-08-03 Thread Liam Potter


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: mjlaw...@us.ibm.com

'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" 

To: 
"jQuery (English)" 

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?








[jQuery] Re: a select question

2009-08-03 Thread Michael Lawson

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:  mjlaw...@us.ibm.com

'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..'


   
  From:   "David .Wu"  
   
  To: "jQuery (English)"   
   
  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?





<><>