I have a that I want to change the selected one late using a function which is trig onClick later in the app.

```
<select id="myselect">
<option value=aa>aa</option>
<option value=bb>bb</option>
<option value=cc>cc</option>
</select>

```

then by click on a button a function will run and send a query to mysql using php. Let say that php responds me back "bb" then how can I change this select to be selected on bb??

```
document.getElementById('myselect').value="bb"; 

```

does not work.