I am still learning jQuery so this may be a simple one. When a link is clicked I wish to change the text in a div which is a copy of another one on the page, I am deleting the copy and updating the text in the original. I have the parent id and pass the inner div, but the text does not change.
Thanks
var idValues = $(this).parents(".listingContainer").attr('id');
idValues = '#' + idValues
$(this).parents(".listingContainer").remove();
$(idValues).find("div.saveCompare").text('Compare removed')
In idValues is #001 which is correct.
Here is the div:
<div class="listingContainer grid_9 alpha omega" id="001">
<a href="adContent.html" class="listContent">
<div class="listingWrapper">
<div class="grid_8 alpha omega">
<div class="listingContent">
<div class="imgHolder">
<img width="100" height="75" src="imgs/cars/SearchThumb-10053319.jpg">
</div>
<div class="descHolder">
<div id="car"></div>
<h3>Fancy Car</h3><div class="saveCompareShow">Compare Added</div>
<p>Lorem ipsum dolor sit amet, pri ex duis maiorum commune, illud viderer suscipiantur eam an. Dolorum recteque qui in. Pro inani nulla tacimates ex, qu</p>
</div>
</div>
</div>
<div class="goTo goTo_unfocus grid_1 alpha omega">
<div class="gotoWrapper">
Click to View
<div class="imgVeiw"></div>
</div>
</div>
</div><!--End listingWrapper-->
</a>
</div>
0012.i can not find a class called
saveCompare, are you reffering tosaveCompareShowNOTE
HTMLIDatttribute