Hi Mario,

To get the second child, you can use the :nth-child(n) pseudo-class:

  $('FIELD:nth-child(2)')

If you want all of the fields after the third, you can use :gt(n)
  $('FIELD:gt(2)')

More fun ways to select elements can be found in the docs:
  http://docs.jquery.com/DOM/Traversing

Also, I wrote a couple entries on learningjquery.com that might help:
http://www.learningjquery.com/2006/11/how-to-get-anything-you-want- part-1 http://www.learningjquery.com/2006/12/how-to-get-anything-you-want- part-2

Hope that helps.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Mar 23, 2007, at 9:14 AM, MARIO MOURA wrote:

Hi

I am newbie

How can I get a second children element?

In firebug I have

---DIV
------FIELD
------FIELD
------FIELD
------FIELD
------FIELD

My problem is all children have same name. How can I get second and after the third...

Regards

--
macm
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to