New to jQuery and I\'m having trouble getting the parameters of a url that my server generates. I have a url like this:
function getURLParameter(name) { return decodeURI( (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] ); }