jquery load specific page / query strings
<p>I have the following working code:</p>

<pre><code>&lt;script&gt;
$(document).ready(function(){
$('#target').click(function() {
$("#success").load("/contacts/person/view/1", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
$("#error").html(msg + xhr.status + " " + xhr.statusText);
}
});
});
});
&lt;/script&gt;
</code></pre>

<p>I wish to have a series of links such as:</p>

<pre><code>&lt;a id="target"&gt;a&lt;/a&gt;
&lt;a id="target"&gt;b&lt;/a&gt;
&lt;a id="target"&gt;c&lt;/a&gt;
</code></pre>

<p>Each of which should when clicked bring up a specific person. So each link will reference a particular person. Therefore depending on which link clicked the value of:</p>

<p>/contacts/person/view/<strong>1</strong></p>

<p>must change.</p>

<p>How can I do this please?</p>

<p>Thanks for any assistance.</p>
