strip all <img> tags within a div
I have a jcycle plugin on a number of divs which are testimonials. Basically I don't want to show the <img>
tag in the testimonial viewed in a block on the front page but rather I do want it to show on another page. So I want to add some jQuery or another method that strips the img tags for the front page display.
How to do this?
$("#div img").remove();
$('#div img').remove();
$('.testimonial img').hide();
to hide the images within each matching div.
上一篇: 在Jquery中选择一个点击元素的子图像
下一篇: 去除div内的所有<img>标签