javascript create element select option selected code example
Example: make select option selected javascript
document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'
document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'