<p>What's the best way to get an array of all elements in an html document with a specific CSS class using javascript?</p>

<p>No javascript frameworks like jQuery allowed here right now, and I could loop all the elements and check them manually myself.  I'm hoping for something a little more elegant.</p>

You can include a
getElementsByClass
function, or you can use
a jQuery selector
.
UPDATE:
The
implementation
mentioned by @
Shog9
is probably better than that above.