How can I get the value in the url using jquery in my wordpress theme footer.php?
I'm using the following code to get url
var url = window.location.href;
And the result I get is www.example.com/2016/ and the value I want to get from this url is 2016 what is the next step to get the number 2016 from the url?