I have two click functions: one targets td.default and the second td.clicked. Both changes the class attribute to either 'clicked' or 'default' (and updates the text in the cell). The classes are getting changed from the first click function but the second click function that looks for td.click doesn't find it's target.
$("td.default").click(function() {
$(this).attr('class','clicked');
$(this).text("monkey");
$("#ouput").append("td.default clicked<br/>"); //reporting message
});
$("td.clicked").click(function() {
$(this).attr('class','default');
$(this).text("empty");
$("#ouput").append("td.clicked clicked<br/>"); //reporting message
});