Trying to replace 2011 with getFullYear in copyright div
<p>I am trying to replace the year 2011 in a footer that contains the copyright with the current year.</p>

<p>Currently I have successfully replaced '2003-2011' with '2003-2012' like this:</p>

<pre><code>  $(document).ready (function (function(){

 $('div.footer').html($('div.footer').html() .replace('2003-2011','2003-2012'));

});
</code></pre>

<p>But I wanted to replace '2011' with the current year so you don't have to change the script every year.</p>

<p>Doing this doesn't work:</p>

<pre><code> var year=getFullYear();


 $(document).ready (function(){


$('div.footer').html($('div.footer').html() .replace('2011','year'));



 });
</code></pre>

<p>As always, thank you very much for your help.</p>
