title: Get id of div from its class name
body: <p>How can I find an id based on its class just using javascript.  I know <a href="https://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>