jhbkmooeqj
New Member
I have multiple images within a div like\[code\]<div><li><img src="" class="avaliable_image"></li><img src="" class="magnify"></div>\[/code\]I am trying to use Jquery to remove entirely the image with the class name \[code\]avaliable_image\[/code\],\[code\] $(this).find('img').attr('class' ,'avaliable_image').remove();\[/code\]instead however, it removes both images instead of one? What am I doing wrong?