Skip to content
maxkfranz edited this page May 11, 2012 · 4 revisions

eles.eq()

Get the element at a particular index in the collection.

eles.eq( index )

Gets the element in the collection at the specified index
index : The index of the element to get

Details

This function returns the element at the specified index. It is useful for iteration and so on. Indices start at zero.

Examples

Get the second node:

var secondNode = cy.nodes().eq(1);

Clone this wiki locally