title: Add select attribute to Html.DropDownList using JQuery
body: <p>I have the the following html elements:</p>
  
  <pre><code>&lt;tr&gt;  
    &lt;td&gt; &lt;label for="casenumber"&gt;Case:&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;
      &lt;%=Html.TextBox("casenumber", "", new Dictionary&lt;string, object&gt;
      {
        {"id", "casenumberID"}
      })%&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;label for="fogbugzUser"&gt;Users:&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;
      &lt;%=Html.DropDownList("UserList", (SelectList)ViewData["UserList"], new Dictionary&lt;string, object&gt;
      {
        {"id", "userlistid"}
      })%&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Now, when the <code>casenumber</code> loses focus, I want to call the database to return me a selected value in the <code>UserList</code>.</p>
  
  <p>Here's the Javascript:</p>
  
  <pre><code>$(function() {
    $("#casenumberID").blur(function() {
      //don't know how to do!!);
    });    
  });
  </code></pre>
  
  <p>And here's the client side scripting:</p>
  
  <pre><code>public JsonResult GetOpenByUser(string casenumber)
  {
    return Json(userContext.OpenBy(casenumber));
  }
  </code></pre>
  
  <p>The question is how to write the function "blur" so that I can pass in the value of the textbox <code>casenumber</code> to the <code>GetOpenByUser</code>? </p>
  
  <p>Also, how to complete the function <code>blur</code> so that the option that has the same value as the one that is returned by <code>GetOpenByUser</code> will be selected?</p>