nikoo malek

nikoo malek

  • NA
  • 4
  • 9.1k

How get the value of Drop down in Typescript?

Mar 17 2017 2:51 PM
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)