As per the jQuery api, the complementary operation to .get(), which accepts an index and returns a DOM node, .index() can take a DOM node and returns an index.
.index()
You can build your own function :
function indexInParent(node) { var children = node.parentNode.childNodes; var num = 0; for (var i=0; i
Demonstration (open the console)