Get complete element by class name
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1933602/how-to-getelementbyclass-instead-of-getelementbyid-with-javascript">How to getElementByClass instead of GetElementById with Javascript?</a><br>
  <a href="http://stackoverflow.com/questions/3808808/how-to-get-element-by-class-in-javascript">How to Get Element By Class in JavaScript?</a>  </p>
</blockquote>



<p>I need to get the complete tag by class. Is it possible to do in javascript without any cross browser issues. </p>

<p>For eg., if the element is,</p>

<p><code>&lt;img src="hello.jpg" class="myclass" /&gt;</code></p>

<p>Then i need to get,</p>

<p><code>&lt;img src="hello.jpg" class="myclass" /&gt;</code> by using class name. Any solution or suggestion on this would be greatly appreciated.</p>

<p><strong>Note:</strong> Please note that, i don't wnt to use any JavaScript library.</p>
