Get id of div from its class name
<p>How can I find an id based on its class just using javascript.  I know <a href="http://stackoverflow.com/questions/3965612/finding-div-id-on-the-basis-of-its-class-name">this is easy with jQuery</a> what is the solution.. using getElementsByTagName ?</p>
