get index of option by value in select code example
Example 1: get index of selected option javascript
$("#sel").attr("selectedIndex")
// or
$("#sel")[0].selectedIndex
//or
$(this).prop('selectedIndex')
Example 2: get index of option in select jquery
alert($("#dropDownMenuKategorie")[0].selectedIndex);