Getting an array of open visible div tags
i have a page that has a menu that inserts new div tags into a parent div tag called "content".
Each new div tag has the same class called "child".
So my page will look like this:
- <div id="menu">
- <a>Menu 1</a>
- <a>Menu 2</a>
- </div>
- <div id="content">
- <div class="child">some content</div>
- </div>
But my menu might have maybe 20 items, so up to 20 new div tags will be added into the "content" area. Is there a way that i can get all the "opened/visible" div tags inside the "content" div tag, and then loop through that array to find out information? (info i want is x & y co-ords, etc).
I am assuming that i should use a selector call, but i am unsure as to how to add it to an array.
Any help would be great. Thanks.