I'm trying to display 10 option tags in a select. The **notaDt.text()** is the current value. So if that value matches the **i**, the displays a "selected".

```
var n, select, option;              
for(var i=10; i>=1; i--) {  
    n = notaDt.text();
    select = ( i == n ? "selected" : "");
    option = option + '<option value="' + i + '" ' + select + ' >' + i + '</option>';
}

```

The problem is with the **option = option + ...** It returns *" undefined"* when it's called (as seen below), but everything works fine.

<http://img821.imageshack.us/img821/2951/screenshot20101129at749.png>

Are there any other concatenation methods I could try to not get this message? Thanks!