Código:
function borrar_cmnt(id){ var i = id; $.ajax({ async:true, type: "POST", dataType: "html", contentType: "application/x-www-form-urlencoded", url:"/elim_cmnt.php", data: "id="+i, success: function llegadaBorrar_cmnt(){ $("#cmnt_" + id).fadeOut("slow") }, }); return; }