Possible Duplicate:
How to getElementByClass instead of GetElementById with Javascript?
How to Get Element By Class in JavaScript?
I need to get the complete tag by class. Is it possible to do in javascript without any cross browser issues.
For eg., if the element is,
<img src="hello.jpg" class="myclass" />
Then i need to get,
<img src="hello.jpg" class="myclass" />
by using class name. Any solution or suggestion on this would be greatly appreciated.
Note: Please note that, i don't wnt to use any JavaScript library.