title: knockout dropdown list pass selection to model in MVC5
body: <p>I am having a issue with a knockoutjs drop-down list, I have a MVC 5 application with this on my razor view, which is being bound from knockout.</p>
  
  <pre><code>&lt;select name="alddlname" id="alddl" 
      data-bind="
          options: authorityLevel, 
          optionsText: 'AuthorityLevel', 
          optionsValue: 'aid', 
          value: aid
      "&gt;
  &lt;/select&gt; 
  </code></pre>
  
  <p>I would link to the use the selected item and pass it to a model attribute</p>
  
  <pre><code>public List&lt;authorityLevel&gt; authLevellistItems { get; set; }
  public string SelectedAuthType { get; set; }
  </code></pre>
  
  <p>I would like to bind the model to the dropdown list so that selectedAuthType is then set to the value</p>
  
  <p>the dropdown is poppulated from knockout with this</p>
  
  <pre><code>var authorityLevelList = Html.Raw(JsonConvert.SerializeObject(ViewBag.authorityLevelDDL));
  
  $(document).ready(function ()
  {
      var vm = new AppViewModel();            
      vm.authorityLevel = ko.mapping.fromJS(@authorityLevelList);
      ko.applyBindings(vm);
  });
  </code></pre>
  
  <p>thank you in advance </p>