title: How can I return multiple values with a select list in ASP.NET MVC?
body: <p>For example if I had a dropdownlist</p>
  
  <pre><code> @Html.DropDownListFor(model =&gt; model.proj.price, Model.FoodSelectList, "Choose...")
  </code></pre>
  
  <p>The list displays a bunch of foods and each food has a price value that is returned when a food is selected. I would also like to store the name of the food item selected. How could I get both values back from the select list?</p>
  
  <p>Thanks for the help I used something similar to this javascript</p>
  
  <pre><code>&lt;script&gt;
  function myFunction()
  {   var alertinfo = document.getElementById("Project_Price");
      var Project_Names = alertinfo.options[alertinfo.selectedIndex].text;
      $('#Project_Name).val(Project_Names);
  }
  &lt;/script&gt;
  </code></pre>