Ben yazmak için nasıl emin değilim çünkü aşağıda bu var dize, 1 tek eser ile ilk ama ben ikinci bir çalışma almak için gereken soruların bir çift, bir dizimi hatası var
var string = 'id='+ id ;
var string = 'id='+ id 'USER=1';
Second; This ajax call below, it post to delete.php to delete a comment, it works but I would like to add in some error handling. Once I add it into the backend, how can I make it show an error in jquery ?
$.ajax({
type: "POST",
url: "delete.php",
data: string,
cache: false,
success: function(){
commentContainer.slideUp('slow', function() {$(this).remove();});
$('#load').fadeOut();
}