javascript select how to select an option code example
Example 1: make select option selected javascript
document.getElementById('personlist').getElementsByTagName('option')[11].selected = 'selected'
Example 2: how to get the selected index of dropdown
BY LOVE
$('#ddlPartnerType option:selected').index()