tags:

views:

163

answers:

4

Hi, I have a jcycle plugin on a number of divs which are testimonials. Basically I don't want to show the 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.

Any ideas how to do this?

Thanks

Andy

+3  A: 
$("#div img").remove();
Fabian
A: 

$('.testimonial img').hide(); to hide the images within each matching div.

Jonathan Julian
I want to remove them from the markup rather than hide, thanks.
Andrew Welch
A: 

I think this can be relevant for you: http://stackoverflow.com/questions/306583/jquery-this-selector-and-children

PHP_Jedi
A: 
$('#div img').remove();
Jimmy
this didn't work
Andrew Welch
I beg your pardon very much, it did work. Cheers.
Andrew Welch
mark as answer?
Jimmy
Take a look at the first answer :). Anyway doubt anything will get posted as answer seeing his 0% accept rate.
Fabian
first answer was edited to the correct answer (read: mine) after I submitted mine :D oh well
Jimmy