Skip to content

Instantly share code, notes, and snippets.

@noahub
Last active February 23, 2017 12:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahub/fec2ae22859ba50e94c6 to your computer and use it in GitHub Desktop.
Save noahub/fec2ae22859ba50e94c6 to your computer and use it in GitHub Desktop.
Replace Target Text with Current Month
<script>
$(function() {
var month = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
var d = new Date();
var n = month[d.getMonth()];
$( "#month" ).text(n);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment