We can obtain a reference to this type of element using its name:
oSelectOne = oForm.elements["select_one_element_name"];
To get the index of the selected option in the JavaScript options array of the select element, we can use the selectedIndex property of the select element object
var e =document.querySelector('select[name="plan_type"]');
var strUser = e.options[e.selectedIndex];
We can now use this index to determine the value of the selected option:
var strUser_value = e.options[index].value;
If we needed to get the text corresponding to the selected option, we would need to use the text property of the option element, instead of the value property:
var strUser_text = e.options[index].text;