Check out example codes for "how To fetch the index of dropdown in html". It will help you in understanding the concepts better.

Code Example 1

BY LOVE
$('#ddlPartnerType option:selected').index()

Learn ReactJs, React Native from akashmittal.com