Carathnaito
New Member
I have a that I want to change the selected one late using a function which is trig onClick later in the app.\[code\]<select id="myselect"><option value=http://stackoverflow.com/questions/14391618/aa>aa</option><option value=bb>bb</option><option value=cc>cc</option></select>\[/code\]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??\[code\]document.getElementById('myselect').value="http://stackoverflow.com/questions/14391618/bb"; \[/code\]does not work.