title: Ajax POST - display response
body: <p>I would to display a response body of Ajax POST request on my page:</p>
  
  <pre><code> $.ajax({
      type: "POST",
      url: "&lt;url&gt;",
      data: jsonText,
      crossDomain: true,
      dataType: "text/plain",
      contentType : "application/json",
  
      //if received a response from the server
      success: function(response, textStatus, jqXHR) {
              alert(response);
              $("#uploadResponse").innerHtml = response;
      },
  
      });
  </code></pre>
  
  <p>I get response with response but the success function is not triggered and I see not output. Why is that? </p>