title: jQuery text() with replace() doesn't replace the text
body: <p>I have the following H2:</p>
  
  <pre><code>&lt;h2 id="resetPWSuccess"&gt;Password reset instructions have been sent to *|RESETPASSWORDEMAIL|*&lt;/h2&gt;
  </code></pre>
  
  <p>I want to replace the <code>*|RESETPASSWORDEMAIL|*</code> with current email address that I have in the jQuery variable <code>emailAddress</code>.</p>
  
  <p>I have tried the following but it doesn't work:</p>
  
  <pre><code>$('h2#resetPWSuccess').text().replace('*|RESETPASSWORDEMAIL|*', emailAddress).show();
  </code></pre>
  
  <p>Is there a way to update the h2 text - I prefer one line if possible.</p>