how to pass the id of a row link to a jquery , in order to use ajax?
<p>how to pass the id of an edit or delete link via jquery in order to use ajax and php ?
here's my code at the front-end which displays the links</p>

<pre><code>foreach($cat-&gt;getCategories() as $key =&gt; $val){
        echo $val."&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a id='editcat' href=edit.php?id=".$key."&gt;Edit&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a id='deletecat' href=delete.php?id=".$key."&gt;Delete&lt;/a&gt;&lt;br /&gt;";
}
</code></pre>

<p>now how to pass those id's to the jquery ?</p>

<pre><code>   $('#editcat').click(function(){

   });

   $('#deletecat').click(function(){

   });
</code></pre>
