use html function like this
$("#table1 td:contains('a')").html("hallo");
if you want to use innerHTML (this is the DOM method, not the JQuery Method), you need to select DOMElement first.
jQuery(document).ready(function(){ $("#table1 td:contains('a')").each(function(){ jQuery(this)[0].innerHTML = "Hallo"; }); });
silly source share