Get querystring from URL using jQuery [duplicate]
This question already has answers here: How can I get query string values in JavaScript? (73 answers) Closed 2 years ago. I have the following URL: http://www.mysite.co.uk/?location=mylocation1 I need to get the value of location from the URL into a variable and then use it in jQuery code: var thequerystring = “getthequerystringhere” $(‘html,body’).animate({scrollTop: $(“div#” + … Read more