Question: I want to select every row in a table, but everything i try, it only selects the first. 
I tried the following snippet, which I found somewhere. It doesn't help me out though. 

```
function addJQuery(callback) {
    var script = document.createElement("script");

    script.setAttribute("src", 
            "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");

    script.addEventListener('load', 
                function() {
                    var script = document.createElement("script");
                    script.textContent = "(" + callback.toString() + ")();";
                    document.body.appendChild(script);
                }, 
                false);
    document.body.appendChild(script);
}

```

This is the code it's all about: 

```
var rows = $("#report_list tr");

```

Answer: 
make sure you're including the jquery document.ready function when using a jquery selector.

```
$(document).ready(function() {
    var rows = $("#report_list tr");
    console.log(rows);
});

```
Remove the spaces in the src: "<http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js>");

When I removed the spaces it worked: [Demo](http://jsfiddle.net/tbsXR/)

```
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");

```