In this code:
HTML Code:
      <a class="sample" href="javascript:void(0);" onclick="some function">Rename</a>
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?

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