jQuery code snippet to automatically insert the correct year into your footer (so you don’t have to update it ever again!). This code actually is JavaScript only but hey i’m sure we can throw in some jQuery? Any ideas?
Example: Copyright © 2011
Copyright © <script type="text/javascript"> var dteNow = new Date(); var intYear = dteNow.getFullYear(); document.write(intYear); </script>






This is not jQuery, plain JavaScript.
It’s useful though!
Ben
Good point Ben! Any ideas how we can spice it up abit with some jQuery?
its working.. thanks mate