$("body").on('click', ".btn-minus", function () {
на $(".btn-minus").on('click', function () {
var $docFagment = $(document.createDocumentFragment);
$.each(data, function( index, value ) {
var html = '';
// ...
$docFagment.append(html);
});
$('#list_upload_img').append($docFragment);
Special builds can be created that exclude subsets of jQuery functionality. This allows for smaller custom builds when the builder is certain that those parts of jQuery are not being used.
Any module may be excluded except for core, and selector. To exclude a module, pass its path relative to the src folder (without the .js extension).
var $img = $('img');
var $link = $img.parent();
$img.after($link);
$link.remove();