jQuery Current Year

Keep your website up to date with the current year with this jQuery Current Year snippet which is particularly useful for showing the current year for Copyright purposes:- <!– HTML –> <div>Copyright &copy; <span class=”currentyear”>Year</span></div> <!– Script –> <script> jQuery(document).ready( function($) { currentyear = new Date().getFullYear(); $(‘.currentyear’).text(currentyear); }); </script> // Alternative <script language=”javascript” type=”text/javascript”> var today = new Date(); var …