title: Set focus on the same control where validation fails on blur event, JQuery
body: <p>I have a form that has dynamic controls created using jQuery. I have applied validations on the controls using jQuery. I am validating the controls on blur event. The problem here is that i need to set the focus on the same control where validation fails on blur event.</p>
  
  <p>I have done something like this:</p>
  
  <pre><code>$(propVal1).blur(function () {
      if(!ValidateNumber(this, propName1)) {
          alert('Value should be numeric in ' + propName1);
          setTimeout(function() {$(this).focus();}, 1);
      }
  });
  </code></pre>
  
  <p>Where propVal1 represent an input control created dynamically, propName1 is the string name of the property.</p>