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