Skip to content
maxkfranz edited this page Mar 8, 2012 · 3 revisions

eles.nodes()

Get the nodes in the collection matching an optional selector.

eles.nodes()

Get a new collection with the nodes from the original collection

eles.nodes( selector )

Gets the nodes in the collection matching the specified selector

selector : Nodes matching this selector will be returned in the new collection

Details

This function acts a shorthand for eles.filter("node").

Examples

var elements = cy.elements();
var selectedNodes = elements.nodes(":selected");

Clone this wiki locally