I populate my selectbox with options onload (ajax, on pageload) and that works fine

```
<select name="variety" id="resorts"><option value="">Select </option></select> 

```

To trigger a selected option (go to Url) I use the function below. 

```
("body").delegate("#resorts","change", function(e){ 
    window.location='http://skiweather.eu/webcams/' + $(this).children("option:selected").attr("value");
    return false;
});

```

It does not seem to work it returns 'undefined'. What is wrong. 

Maybe the populate function?

```
function populate_cantons(){$.getJSON("http://skiweather.eu/v3/ajax/fetch_canton.php",{country:$("#country").val()},function(a){var b=$("#cantons");var c=b.prop("options");$("option",b).remove();$.each(a,function(a,b){c[c.length]=new Option(b["canton"])});b.prepend("<option selected>Select region</option>")})}

```

<http://skiweather.eu/latest/> (selectbox at the top right of the page.