I can select with "jquery" an element with a class name assign it to a variable and get the position in the document
document.getElementById (""). style.top
I want to do this same but with all the elements of a class
there's two ways, each one returning a dynamic element list:
note that second one get a css queryselector string (so here's a leading dot before class name), while first one take only one class name.
Also, each one is also available on all html element ;)
Futher from the answer from visph, I would like to show an example of using document.getElementsByClassName or document.querySelectorAll, so that JoseD can understand the iteration of these array-like object.