Getting an array of open visible div tags

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:

  1. <div id="menu">
  2.       <a>Menu 1</a>
  3.       <a>Menu 2</a>
  4. </div>
  5. <div id="content">
  6.       <div class="child">some content</div>
  7. </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.