[jQuery] Re: Using .children recursively

2007-09-26 Thread george.gsgd

You don't need to use children, that's for if you only want the
children...

Try this:

$('[name]', this).removeAttr(name);

http://docs.jquery.com/Selectors for more info

That'll do what you're attempting

On Sep 26, 8:35 am, voltron [EMAIL PROTECTED] wrote:
 I am trying to get all the children of a node, apart from adding
 .children() for every generation, is there one call that gets all
 recursively?

 this is what I´m doing at the moment

 $(this).children().children().removeAttr(name);



[jQuery] Re: Using .children recursively

2007-09-26 Thread meisen2002

不懂你的意思

On 9月26日, 下午3时35分, voltron [EMAIL PROTECTED] wrote:
 I am trying to get all the children of a node, apart from adding
 .children() for every generation, is there one call that gets all
 recursively?

 this is what I m doing at the moment

 $(this).children().children().removeAttr(name);



[jQuery] Re: Using .children recursively

2007-09-26 Thread Erik Beeson
This will find all descendants: $(this).find('*');

--Erik

On 9/26/07, voltron [EMAIL PROTECTED] wrote:


 I am trying to get all the children of a node, apart from adding
 .children() for every generation, is there one call that gets all
 recursively?

 this is what I´m doing at the moment

 $(this).children().children().removeAttr(name);




[jQuery] Re: Using .children recursively

2007-09-26 Thread voltron

Thanks Erik!

On Sep 26, 1:40 pm, Erik Beeson [EMAIL PROTECTED] wrote:
 This will find all descendants: $(this).find('*');

 --Erik

 On 9/26/07, voltron [EMAIL PROTECTED] wrote:



  I am trying to get all the children of a node, apart from adding
  .children() for every generation, is there one call that gets all
  recursively?

  this is what I´m doing at the moment

  $(this).children().children().removeAttr(name);