In my example I had a dropdown list of countries.
I got the index of what was selected, then I chose the label. You can choose the label or the value depending on what you need.
Something like this:
let selectedItem = $w("#dropdownCountry").selectedIndex;
// options= label, value
let curvalue = $w("#dropdownCountry").options[selectedItem].label.toUpperCase();