title: Javacscript/jQuery replace content in element
body: <p>I'm trying to replace the content in an element, but nothing is happening. Not even getting an error back. </p>
  
  <pre><code>var total = 15;
  $('.totals div h3 span').replaceWith("&lt;p class='totaal'&gt;" + total +" TOTAAL&lt;/p&gt;");
  </code></pre>
  
  <p>Codepen: <a href="http://codepen.io/MennoK/pen/QpjNPZ" rel="nofollow noreferrer">http://codepen.io/MennoK/pen/QpjNPZ</a></p>