sure you want to delete this?")) {
$.ajax({
url: "product/delete.php",
method: "GET",
data: {
id: id,
text: text,
},
dataType: "text",
success: function(data) {
alert(data);
fetch_data();
}
});
}
});
i want send another value with this id
like
var text = $("#productcode").val();
how can i do
$(document).on('click', '#delete', function() { var id = $(this).data("id7"); if (confirm("Are you sure you want to delete this?")) { $.ajax({ url: "product/delete.php", method: "GET", data: { id: id, text: text, productcode: $("#productcode").val() }, dataType: "text", success: function(data) { alert(data); fetch_data(); } }); } });
Обсуждают сегодня