Last active
February 23, 2017 12:21
-
-
Save noahub/fec2ae22859ba50e94c6 to your computer and use it in GitHub Desktop.
Replace Target Text with Current Month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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