title: Add attributes to textbox using jQuery
body: <p>I am using asp.net MVC.</p>
  
  <p>I have control like </p>
  
  <p><code>&lt;%= Html.TextBox("username") %&gt;</code></p>
  
  <p>I want lost focus event to that control.</p>
  
  <p>So code like</p>
  
  <pre><code>$(document).ready(function() {
    $("#username").Attributes.Add("onblur", "alert('losing focus');");
  });
  </code></pre>
  
  <p>but it is not working,</p>
  
  <p>Ultimate goal is to check password &amp; confirm password matches</p>
  
  <p>help me!</p>