Possible Duplicate:
How to Get Element By Class in JavaScript?
I have a div tag with a class name on it. I want to get that div tag using the class name and count the number of elements in them. I am not in a position to filter using ID. How do i achieve this?