Is there a "getElementsByClass" function in JavaScript?
If not, how does jQuery manage to do it without looping through all elements which would be very inefficient?
Also, how can I specify CSS for elements with two or more classes?
<a class="one two">test</a>
Do I need to write the CSS like this?
.one.two {...}
Or is there another way to target elements with multiple classes?