document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'
const changeSelected = (e) => { const $select = document.querySelector('#mySelect'); $select.value = 'steve' };