title: .ajaxComplete not working
body: <p>Hi i currently having a problem with firing .ajaxComplete function, whereby it should be working on a demo site. I'm refer to this function from here <a href="http://check%20username" rel="nofollow">http://www.bitrepository.com/a-simple-ajax-username-availability-checker.html</a></p>
  
  <p>Here are my code :</p>
  
  <pre><code>    &lt;SCRIPT type="text/javascript"&gt;
  &lt;!--
  /*
  Credits: Bit Repository
  Source: http://www.bitrepository.com/web-programming/ajax/username-checker.html 
  */
  
  pic1 = new Image(16, 16); 
  pic1.src = "loader.gif";
  
  $(document).ready(function(){
  
  $("#userID").change(function() { 
  
  var usr = $("#userID").val();
  
  if(usr.length &gt;= 4)
  {
  $("#status").html('&lt;img src="loader.gif" align="absmiddle"&gt;&amp;nbsp;Checking availability...');
  
      $.ajax({  
      type: "POST",  
      url: "check.php",  
      data: "userID="+ usr,  
      success: function(msg){  
     $("#status").ajaxComplete(function(event, request, settings){ 
  
      if(msg == "OK")
      { 
  
          $("#userID").removeClass('object_error'); // if necessary
          $("#userID").addClass("object_ok");
          $(this).html('&amp;nbsp;&lt;img src="tick.gif" align="absmiddle"&gt;');
      }  
      else  
      {  
          $("#userID").removeClass('object_ok'); // if necessary
          $("#userID").addClass("object_error");
          $(this).html(msg);
      }  
  
     });
  
   } 
  
    }); 
  
  }
  else
      {
      $("#status").html('&lt;font color="red"&gt;The username should have at least &lt;strong&gt;4&lt;/strong&gt; characters.&lt;/font&gt;');
      $("#userID").removeClass('object_ok'); // if necessary
      $("#userID").addClass("object_error");
      }
  
  });
  
  });
  
  //--&gt;
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>I had try to alert the msg , the check.php able to return back the msg value, but it stop on the .ajaxComplete() there where it does not trigger the function after the .ajaxComplete(). Please guide me through this. Thanks</p>