<select id='sel'> <option>1</option> <option>2</option> <option>3</option> </select> <script> var sek = document.getElementById('sel') sek.selectedIndex = 2 </script>