// Selecting the 3rd option (Demo 2) document.querySelector('#mySelect').querySelector('option')[2].selected = 'selected'