title: How do I know if jQuery has an Ajax request pending?
body: <p>I'm having some problems with a jQuery control we made. Suppose you have a dropdownlist that allows you to enter the ID of the item you're looking for, and when you press ENTER or lose focus in a textbox it validates via jQuery that the ID you entered is correct, showing an alert if it doesn't.</p>
  
  <p>The thing is that when an ordinary user enters an invalid value in it and loses focus by pressing the submit button, the jQuery post returns after the submit of the form has been sent.</p>
  
  <p>Is there any way that I can check if there's any Async request processing by jQuery so that I do not allow the form submit?</p>