1
Answer

How get the value of Drop down in Typescript?

nikoo malek

nikoo malek

7y
853
1
I have a dropdown list in MVC view as 
 
<select id="organization" class="create-user-select-half"></select>
 
how I can get the value of this in TypeScript?  I tried the javascript like:
 
var organization = document.getElementById("organization");
var strUser = organization.options[e.selectedIndex].value;
 
But  options is not valid.
Answers (1)