title: How do you get a selected item on post from a select list with only text item in asp.net core mvc?
body: <p>How do you get a selected item value or text on post from a select list with only text items in asp.net core mvc?</p>
  <p>The model has one string property, ChosenText.</p>
  <p>Currently, ChosenText always comes back in the post action method as null.</p>
  <p>The markup:</p>
  <pre><code>&lt;form asp-action=&quot;MakeChange&quot; method=&quot;post&quot; id=&quot;mainform&quot;&gt;
    &lt;select name=&quot;cars&quot; id=&quot;cars&quot; asp-for=&quot;ChosenText&quot;&gt;
          &lt;option value=&quot;volvo&quot;&gt;Volvo&lt;/option&gt;
          &lt;option value=&quot;saab&quot;&gt;Saab&lt;/option&gt;
          &lt;option value=&quot;mercedes&quot;&gt;Mercedes&lt;/option&gt;
          &lt;option value=&quot;audi&quot;&gt;Audi&lt;/option&gt;
      &lt;/select&gt;
     &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Action method:</p>
  <pre><code>    [HttpPost]
      [ValidateAntiForgeryToken]
      public IActionResult MakeChange(TestModel model)
      {
          if (model.ChosenText.ToUpper() == &quot;VOLVO&quot;)
          {
  
          }
  
          return View(model);
      }
  </code></pre>