index

returns the node index

number index(HTMLElement node);

Parameters

nodeHTMLElementa DOM element

Returns

numberthe node index in the child nodes collection of the parent

Example

var ind = webix.html.index(someNode);

Back to top