Do we have getElementsByClassName in javascript?
<p>Just like in jQuery we can use $(".classname"), is there a similar thing in javascript as well? Or if we don't have such method then how can i implement that.<br>
According to <a href="http://www.dustindiaz.com/getelementsbyclass/" rel="nofollow">http://www.dustindiaz.com/getelementsbyclass/</a>  i will have to iterate through all tags and then collect all elements which are having the same class as specified.  </p>

<p>Is there any better solution?</p>
