I'm trying to replace the content in an element, but nothing is happening. Not even getting an error back.
var total = 15;
$('.totals div h3 span').replaceWith("<p class='totaal'>" + total +" TOTAAL</p>");
Codepen: http://codepen.io/MennoK/pen/QpjNPZ
Uncaught TypeError: selectors.size is not a functiontotaal- is it the issue?