JQuery: How to do validation on blur of a text box?
<p>I have a textbox with ID "name", I want to do validation when the text box get onblur function. The below code doesn't work. What's wrong with me?</p>

<pre><code>  $(function() {
    $('name').validate({
      rules:{ "name": {required: true, minlength: 5 } }
    });
    $('name').blur(function(){
      $('name').validate()
    });
  };
</code></pre>
