title: How can I set loading image during post data processing for jquery ajax?
body: <p>The jquery ajax code is:</p>
  
  <pre><code>$("#id_btnpolls").click(function(){ 
      var valCheckedRadio = $('input[name=data[distributions]]:checked').val();
      //alert(valCheckedRadio);       
  
      $.ajax({
          type: "POST",
          url: "/pollanswers/checkpollanswers",
          data: "valCheckedRadio="+valCheckedRadio,       
          success: function(prm){
              //alert(prm);
              $("#id_color_polls").html(prm);
          }           
      });
  
  })
  </code></pre>
  
  <p>When I click the button, the data is displayed after 5 seconds or so. During that loding period I want to add a loading image. How can I do this?</p>