This seems like it should be simple, but I am having difficulty.

I need to select elements in my `DOM` that have both the `checkbox` and `selected` class applied, so I am using the **JavaScript** code:

```
var queries = $(".checkbox.selected");
for (var i = 0; i < queries.length; i++) {
    console.log(queries[i]);
}

```

which prints out:

```
[<div class=​"checkbox selected">​Option 1​</div>​, 
 <div class=​"checkbox selected">​Option 2​</div>​]

```

The issue is, when I use `queries[i].text()` (inside the loop), I get:

```
Uncaught TypeError: queries[i].text is not a function

```

So it looks as if my `queries` is not a list of DOM objects. **How can this be?** I've tried this multiple ways I can't access the `Option 1` or `Option 2` text at all. *Has anyone run into this error? Am I accessing the elements correctly?*