if i have this html
<div class="whole">This is a <div class="min">Test</div></div>
i want to change the html of the "whole" div when i click on the "min" div:
i have tried this below, but it doesn't seem to work.
$(document).ready(function() {
$('div.min').live('click', function() {
$(this).prev('.whole').html("<img BORDER=0 src='../../images/copy1.png' />");
});
});
does anyone have any ideas on whats going wrong here ?