[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
#3 errors because as of jQuery 1.3, the use of the @ symbol is deprecated.

$('input[id$=ckKyW]') -- all input elements with an id attribute that
ENDS WITH 'ckKyW'

see the Attribute Filters section of http://docs.jquery.com/Selectors

On Sun, Aug 30, 2009 at 7:31 AM, gBerger crapper_m...@att.net wrote:


 I am an extreme beginner so sorry for the basic question.

 I have a number of checkboxes on the screen that contain
 an ID with the characters ckKyW in it.
 Checkbox Examples:
  whatever_ckKyW34
  whatnow_ckKyW67
  whoops_ckKyW23

 I have tried every combination that I could think of
 (a few of them are below) but I am not able to retrieve
 only these checkboxes.  #1 below retrieves ALL checkboxes
 but I know there is a way to retrieve only the ones I need.

 Can some help me please.

 Thanks,
 gBerger



 #1
 This works [ and I was proud of myself for getting this far :)  ]
 //var sChkBoxes = $(form :checkbox).each(function()
 //{
 //alert(this.id);
 //}
 //);


 #2
 // NO ERROR JUST DOESNT RETURN ANYTHING
 //var s3 = ;
 //$(form :checkbox).find(a...@id*='ckKyW']).each(function()
 //{
 //alert(this.id);
 //}
 //);

 #3
 // ERRORS
 //$([...@id*='ckKyW']).each(function() {
 //alert(this.id);
 //}
 //);
 //$(a...@id*='ckKyW']).each(function() {
 //alert(this.id);
 //}
 //);




-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread gBerger

Thanks.  That did the trick.

I actually spent at least a couple of hours on this.  embarrassed to
say
I looked and looked for examples and thought I tried every conceivable
example.

Thanks again,
gBerger

On Aug 30, 1:18 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
 #3 errors because as of jQuery 1.3, the use of the @ symbol is deprecated.

 $('input[id$=ckKyW]') -- all input elements with an id attribute that
 ENDS WITH 'ckKyW'

 see the Attribute Filters section ofhttp://docs.jquery.com/Selectors



 On Sun, Aug 30, 2009 at 7:31 AM, gBerger crapper_m...@att.net wrote:

  I am an extreme beginner so sorry for the basic question.

  I have a number of checkboxes on the screen that contain
  an ID with the characters ckKyW in it.
  Checkbox Examples:
   whatever_ckKyW34
   whatnow_ckKyW67
   whoops_ckKyW23

  I have tried every combination that I could think of
  (a few of them are below) but I am not able to retrieve
  only these checkboxes.  #1 below retrieves ALL checkboxes
  but I know there is a way to retrieve only the ones I need.

  Can some help me please.

  Thanks,
  gBerger

  #1
  This works [ and I was proud of myself for getting this far :)  ]
  //    var sChkBoxes = $(form :checkbox).each(function()
  //    {
  //        alert(this.id);
  //    }
  //    );

  #2
  // NO ERROR JUST DOESNT RETURN ANYTHING
  //    var s3 = ;
  //    $(form :checkbox).find(a...@id*='ckKyW']).each(function()
  //    {
  //        alert(this.id);
  //    }
  //    );

  #3
  // ERRORS
  //    $([...@id*='ckKyW']).each(function() {
  //        alert(this.id);
  //    }
  //    );
  //    $(a...@id*='ckKyW']).each(function() {
  //        alert(this.id);
  //    }
  //    );

 --
 I have failed as much as I have succeeded. But I love my life. I love my
 wife. And I wish you my kind of success.


[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
No reason to be embarrassed.  Everyone starts somewhere.

Hell, compared to many of the folks on this list, I'm still a n00b.  Just
keep at it, refer to the docs early and often, and don't be afraid to ask
questions as they come up.

On Sun, Aug 30, 2009 at 11:23 AM, gBerger crapper_m...@att.net wrote:


 Thanks.  That did the trick.

 I actually spent at least a couple of hours on this.  embarrassed to
 say
 I looked and looked for examples and thought I tried every conceivable
 example.

 Thanks again,
 gBerger

 On Aug 30, 1:18 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
  #3 errors because as of jQuery 1.3, the use of the @ symbol is
 deprecated.
 
  $('input[id$=ckKyW]') -- all input elements with an id attribute that
  ENDS WITH 'ckKyW'
 
  see the Attribute Filters section ofhttp://docs.jquery.com/Selectors
 
 
 
  On Sun, Aug 30, 2009 at 7:31 AM, gBerger crapper_m...@att.net wrote:
 
   I am an extreme beginner so sorry for the basic question.
 
   I have a number of checkboxes on the screen that contain
   an ID with the characters ckKyW in it.
   Checkbox Examples:
whatever_ckKyW34
whatnow_ckKyW67
whoops_ckKyW23
 
   I have tried every combination that I could think of
   (a few of them are below) but I am not able to retrieve
   only these checkboxes.  #1 below retrieves ALL checkboxes
   but I know there is a way to retrieve only the ones I need.
 
   Can some help me please.
 
   Thanks,
   gBerger
 
   #1
   This works [ and I was proud of myself for getting this far :)  ]
   //var sChkBoxes = $(form :checkbox).each(function()
   //{
   //alert(this.id);
   //}
   //);
 
   #2
   // NO ERROR JUST DOESNT RETURN ANYTHING
   //var s3 = ;
   //$(form :checkbox).find(a...@id*='ckKyW']).each(function()
   //{
   //alert(this.id);
   //}
   //);
 
   #3
   // ERRORS
   //$([...@id*='ckKyW']).each(function() {
   //alert(this.id);
   //}
   //);
   //$(a...@id*='ckKyW']).each(function() {
   //alert(this.id);
   //}
   //);
 
  --
  I have failed as much as I have succeeded. But I love my life. I love my
  wife. And I wish you my kind of success.




-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread MorningZ

 I looked and looked for examples and thought I tried every conceivable
 example.

Always start right here

http://docs.jquery.com/Selectors

you would have run across this

http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue


[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 chan1...@gmail.com 
   
  To: jQuery (English) jquery-en@googlegroups.com  
   
  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

inline: graycol.gifinline: ecblank.gif

[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 chan1...@gmail.com

To: 
jQuery (English) jquery-en@googlegroups.com

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




[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 chan1...@gmail.com wrote:
 if I have 3 div, how to filter the div without class abc?

 div/div
 div class=abc/div
 div/div


[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 radioactiv...@gmail.com 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 chan1...@gmail.com

  To:        
  jQuery (English) jquery-en@googlegroups.com

  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


[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 radioactiv...@gmail.com 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 chan1...@gmail.com

  To:        
  jQuery (English) jquery-en@googlegroups.com

  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