Find child by index jQuery

dom, jquery

Solution

Try this: (`.eq()`):

selection.eq(1).text()

Problem

jQuery can return last or first child,it works ok. But I need to get second child. This construction (get child by index) doesn't work,when get its text: ``` child.parent().parent().children().get(1).text() ``` So, how can i find non-last and non-first child (e.g. second)?

Original source