How to call PHP page with Javascript & jQuery when user clicks on a href link?
<p>In a PHP Project I have hyperlink :</p>

<pre><code>&lt;a href="addid.php?id='. $Id . '"&gt;| Name |&lt;/a&gt;';
</code></pre>

<p>When a user click on the link I need to add the selected "id" to session</p>

<p><strong>addid.php Code :</strong></p>

<pre><code>session_start();
$_SESSION['id'] = $_GET['id'];
</code></pre>

<p>I need to accomplish this without reloading the page (need to add the "id" to session in background).</p>

<p>How to call <code>addid.php</code> with Javascript &amp; jQuery?</p>

<p>NOTE: I tried this code, but it does load the <code>addid.php</code> in browser</p>

<pre><code>$('a').click(function(){
      $.ajax(); 
        return false; 
});
</code></pre>
