Clear an IMG with jQuery

后端 未结 9 2010
广开言路
广开言路 2021-02-05 01:35

I\'m trying to remove the loaded image from a element, but clearing or removing the src doesn\'t do it. What to do?

HTML:

9条回答
  •  迷失自我
    2021-02-05 02:21

    This worked for me.Replacing the image attribute src within div 'custom_preview_image' to blank

    field = jQuery(this).closest('td').find('.custom_repeatable li:last').clone(true); field.find('.custom_preview_image').removeAttr('src').end();
    

提交回复
热议问题