I want to simply replace the word "comment" wherever it is in a particular table.
Here's my jQuery attempt: $(document).ready(function(){ $("td:contains('comment')").text("vote"); }); What this does though is replace all of the text in every cell that has the word "comment" in it with the word "vote". I just want to replace the word "comment" in every cell, not all of the text in every cell. Is there a way to do this with jQuery? I am doing this on a Confluence wiki if that makes any difference.