give option value to 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'