title: how to set default value to Html.dropdownlist using a local variable
body: <p>I have a string <code>UserLevel</code> and I want to set the dropdown list value to the item that matches this string.
  I have tried this:</p>
  
  <pre><code>$("#Level option:selected").val(UserLevel);
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>and I don't know how to use this:</p>
  
  <pre><code>$("#Level option[value='']").attr("selected", "selected");
  </code></pre>
  
  <p>Is there any other way?</p>