I've managed to modify the content of certain H1's since I don't want them to return the value from the global variable. I used the code;
<script type="text/javascript">
$(document).ready(function() {
$("H1").filter(function() { return $(this).text() === "Oak"; }).replaceWith('<H1>Solid Oak Furniture</H1>');
$("H1:contains('Countryside Oak')").replaceWith('<H1>Countryside Oak Furniture</H1>');
});
</script>
My question is when I view source, it shows the 'old' code.
Ex. Instead of showing <H1>Solid Oak Furniture</H1>
it still shows <H1>Oak</H1>
But if I use, inspect element it shows the new code, <H1>Solid Oak Furniture</H1>
So which is actually on the current code?