title: JQuery replace CC number except for last four digits
body: <p>I have a div that I need to strip away all characters except for the last four. I'm currently using replaceWith for this, but it replaces the whole thing.</p>
  
  <p>Here's what I have</p>
  
  <pre><code>&lt;div class="field-name-field-credit-card"&gt;1111111111111111&lt;/div&gt;
  
  $(".field-name-field-credit-card").replaceWith("xxxx xxxx xxxx xxxx");
  </code></pre>
  
  <p>and my result</p>
  
  <pre><code>&lt;div class="field-name-field-credit-card"&gt;xxxx xxxx xxxx xxxx&lt;/div&gt;
  </code></pre>
  
  <p>But I would like it to be:</p>
  
  <pre><code>&lt;div class="field-name-field-credit-card"&gt;xxxx xxxx xxxx 1111&lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/uCKfB/" rel="nofollow">jsfiddle</a></p>