title: Loading gif image while jQuery ajax is running
body: <p>I am trying to show a loading image while my ajax call is running, however using the <code>beforeSend</code> attribute is not changing my result area.</p>
  
  <pre><code>$.ajax({
    url: "/answer_checker.php",
    global: false, type: "POST", 
    data: ({...clipped...}), 
    cache: false,
    beforeSend: function() {
      $('#response').text('Loading...');
    },
    success: function(html) {
      $('#response').html(html);
    }
  }
  </code></pre>
  
  <p>Thanks in advance.</p>