I want find the index of a given DOM node. It\'s like the inverse of doing
document.getElementById(\'id_of_element\').childNodes[K]
I want
using a framework like prototype you could use this :
$(el).up().childElements().indexOf($(el))