title: Using ASP .NET MVC 2, Html.DropDownListFor - how to call a JQuery function on select?
body: <p>I'm using DropDownListFor in my view:</p>
  
  <pre><code>&lt;%: Html.DropDownListFor(model =&gt; model.Type, 
                          new SelectList(ComponentsFactory.GetTypeList().Select(a =&gt; new { Name = Regex.Replace(a, @"^.*\.", ""), Value = a }).OrderBy(a =&gt; a.Name),
                              "Value", "Name", Model.Type), "Select . . .", null) %&gt; 
  </code></pre>
  
  <p>I also have a JQuery function in a .js scripts file that is already included in my header and everything:</p>
  
  <pre><code>function GetRequiredFields(type) 
  {
  ...//do JQuery AJAX stuff
  }
  </code></pre>
  
  <p>I want to call "GetRequiredFields" with parameter "type" as the value of the selected item on select, and use it to update a 'div' named "RequiredFields".  How can I do this?  Do I need to use something other than Html.DropDownListFor?</p>