title: How load a PHP page in the same window in jQuery
body: <p>I have a PHP file, Test.php, and it has two functions:</p>
  
  <pre><code>&lt;?php
      echo displayInfo();
      echo displayDetails();
  ?&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>&lt;html&gt;
       ...
      &lt;script type="text/javascript"&gt;
          $.ajax({
              type:'POST',
              url: 'display.php',
              data:'id='+id  ,
              success: function(data){
                  $("#response").html(data);
              }
          });
      &lt;/script&gt;
      ...
  
      &lt;div id="response"&gt;
      &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It returns the response from jQuery. The response shows as <code>&lt;a href=Another.php?&gt;Link&lt;/a&gt;</code>. When I click the Another.php link in <code>test.php</code>, it loads in another window. But I need it to load the same <code>&lt;div&gt; &lt;/div&gt;</code> area without changing the content of <code>test.php</code>, since it has <code>displayInfo(), displayDetails()</code>. Or is it possible to load a PHP page inside <code>&lt;div&gt; &lt;/div&gt;</code> elements?</p>
  
  <p>How can I tackle this problem?</p>