how to make select option function in 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'