javascript selecting index of variable code example Example: how To fetch the index of dropdown in html BY LOVE $('#ddlPartnerType option:selected').index()