How can I remove only the src not the whole image I tried something like this
$(this).parent().find('img').not(this).remove();
But it is not working it deletes the image and then when I try to upload again it does not upload because it can not find the image