title: Ajax response in alert
body: <p>I have a test.php file as:</p>
  
  <pre><code>&lt;?php
      header('Content-type: application/json');
      $json_array = array();
      $json_array['success']='1';
      echo json_encode($json_array);
  ?&gt;
  </code></pre>
  
  <p>On an input button click response needed in an alert.</p>
  
  <pre><code> &lt;input type="button" id="btnSubmit" value="AJAX Request" /&gt;
  </code></pre>