title: Specify class attribute of password box in Razor
body: <p>Does anybody know how to specify class html attribute of password box in Razor?</p>
  
  <p>Here is what I currently have but it throws errors:</p>
  
  <pre><code>@Html.PasswordFor(x =&gt; x.Password, new { id="pbPassword", class="loginPassword" })
  </code></pre>
  
  <p>Thanks</p>