0
テーブルから行を削除しますが、ajaxの成功部分は実行されません。あなたが明示的にcontext
を設定しない限り、あなたの成功コールバックの内側ajaxステートメント内でjQueryを使用してテーブル行を削除する
function fn_delete() {
$("a.delete").click(function() {
idProduct = $(this).parents("tr").find("td").eq(1).html();
$.ajax({
type: "POST",
url: "DeleteProduct",
data: { idProduct },
success: function() {
$(this).parents("tr").fadeOut("normal", function() {
$(this).remove();
}
});
});
};