Replacing certain text in an element?

Replacing certain text in an element?

I'm trying to simply replace a certain string from the contents of an element, I tried this:

<div id="errorCont">Microsoft and Apple</div>
  1.             var ErrorContText=$("#errorCont").html();
  2.             ErrorContText=ErrorContText.replace("Apple","No one");
  3.             $("#errorCont").html(ErrorContText);
So the div SHOULD now say "Microsoft and No one", but it's not working :(