var sel=(id);//select element idvar index=;//Get the index of the selected optionvar textsel= [index].text;//Get the content of the corresponding option