Ok so my ajax goes as follows - when someone clicks this link:

```
$echo " | <a href=\"javascript:void(0);\"  id=".$larray['idnum']." class=\"deleterow\">Delete Friend</a>";

```

I use an ajax/jquery to send the data to delete\_ajax.php

```
$(".deleterow").click( function() {
    $('.deleterow').attr('id');
    var dr= $(this).attr('id');
    $.post("delete_ajax.php", { id: dr } );
} );

```

Can someone just double check that this is all correct?