There is no functionality in Javascript where you can get all elements by class name. Yes, in JQuery you can but that involves loading up a library.

If you do not have any other need for JQuery, this class made by some user in the Stack Overflow forum does the trick.

Related Posts Plugin for WordPress, Blogger...