i have this jquery code:
$(this).parent('.copyFoodInstance').attr("myset", "0");
$(this).parent('.copyFoodInstance').html("<img BORDER=0 src='../../images/copy1.png' />");
it seems that when i call this code, this event fires:
$(document).ready(function() {
$('div.copyFoodInstance').live('click', function() {
does anyone know why this event fires from the lines above? is there anyway to stop if from firing? All i am doing is updating an attribute on the div and updating the html. this shouldn't fire a click event?