$( document ).ready(function() { // Anything with the class "current-year" is updated with, you guessed it, the current year. $(".current-year").text( (new Date).getFullYear() ); }); // end document ready