I need a javascript or CSS Selector function (or even a ProtoypeJS function ) that gets me ALL elements (i.e. descendants) under a specific element.
I understand that there is a CSS selector, such as: 'p, a, div' , which will give me all the elements of these three types. However, I need to get EVERYTHING without specifying a type.
T. I want something like
myElement.getElements('*')
source
share