在特定img标记后插入图像中的图片

问题描述:

我使用ajax上传图像。但是,在ajax响应之后,我试图在该响应的div中显示图像。我面临的问题是在特定的img标签后面或最后一个img标签的末尾添加图像。在特定img标记后插入图像中的图片

+1

请显示你的代码,你已经尝试过。 – talentedandrew

$(function(){ 
    $.ajax({ 
     url:'abc.xyz', 
     //more options here, 
     success:function(data){/
      //logic to append data after last image 
      $(data).appendAfter("img:last"); // assuming data as html 
     } 
    }) 
})