well , since something else on the page is affecting this code, you ned to show more.
also what syntax is this : data: {joodb field|id} ?
I dont see where your getting the id of the item to delete and assigning it to the ajax call. also why add a script block to every delete button you generate?
you could jsut use soemthing like
Code:
$('.deleterow').click(function (e) {
e.preventDefault();//prevent default click action for the anchor
$.ajax({
type: 'post',
url: "http://www.{WEBSITEDOMAIN}.co.uk/delete.php",
data: {'id':codetogetid_here},
});
})