how to select an option in a select using javascript code example
Example: make select option selected javascript
document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'
document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'