In this code:
HTML Code:
<td>
      "blank.png"
      <br>
      <a class="sample" href="javascript:void(0);" onclick="some function">Rename</a>
</td>
I am trying to change "blank.png" to "checker.jpg" without altering anything else in the td field. Below is what I have tried. I can load the contents of the TD tag into the tdText variable, but I can't change the value I need to change. Any Ideas where I am going wrong?

Code:
OldName = "blank.png"
NewName = "checker.jpg"
$(".imageRename").click(function () {
     tdText = $(sample).parent().html();
     tdText.replace(OldName, NewName);
     $(sample).parent().html(tdText);
        
});