javascript selec by index code example
Example 1: get index of selected option javascript
$("#sel").attr("selectedIndex")
// or
$("#sel")[0].selectedIndex
//or
$(this).prop('selectedIndex')
Example 2: how To fetch the index of dropdown in html
BY LOVE
$('#ddlPartnerType option:selected').index()