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
foreach($ cat->getCategories() as $ key => $ val){
echo $ val." <a id='editcat' href=edit.php?id=".$ key.">Edit</a> <a id='deletecat' href=delete.php?id=".$ key.">Delete</a><br />";
}
now how to pass those id’s to the jquery ?
$ ('#editcat').click(function(){
});
$ ('#deletecat').click(function(){
});