$('.delete').click(function () {
var qty = $(this).parent();
var chi = $(qty).children();
var chi1 = $(chi).children();
var src = $(chi1).attr("src");
console.log(src);
$.ajax({
url: "delete_img.php",
type: "POST",
data: {
src : src
},
success: function(response){
console.log(response);
}
});
});
url: "delete_img.php",
url: 'default/delete'