title: Create a loading Div
body: <p>I am trying to create a stupid loading div. I just want it to show everytime a button is clicked. I have a gif named ajaz-loader.gif located in img/</p>
  
  <p>I have this and it doesn't work... I just found it on the internet. Any ideas?</p>
  
  <pre><code>    &lt;script&gt;
      $('#loadingDiv').ajaxStart(function() {
        $(this).show();
      }).ajaxComplete(function() {
      $(this).hide();
      });
       &lt;/script&gt;
  </code></pre>