I have a JS code below:

```
var color = "red";

for(i=1; i<=10; i++){
    document.getElementById('content').innerHTML += ('<tr>' +
                                                        '<td>' + i + '</td>' + 
                                                        '<td>' + color + '</td>' +
                                                    '</tr>')
}

```

This creating me table:

```
1 red
2 red
3 red
...

```

What i need is to change color only for i 2. 
I mean after table created i want to change color only for i = 2 to get result:

```
1 red
2 blue
3 red
...     

```

Change content of row by ID. 
Can you please suggest how to do this ?