Use DOM manipulation rather than .html() for replacing tr content.