title: MVC3: Get Drop down menu selected value/text via Javascript
body: <p>On MVC3, with a dropdownlist defined as</p>
  
  <pre><code>@Html.dropDownList(m=&gt;m.model, new SelectList(m.myList, "value", "text"))
  </code></pre>
  
  <p>How can I get the selected value and/or text via javascript?</p>
  
  <p>I tried passing a name:</p>
  
  <pre><code>  @Html.dropDownList(m=&gt;m.model, new SelectList(m.myList, "value", "text"), new {name="name")
  </code></pre>
  
  <p>and reading the name from the javascript:
  document.getElementByName("name")</p>
  
  <p>but that does not work.</p>