Us regular expression to search key and then it corresponding value. jsfiddle
var value = location.search.match(new RegExp(key + "=(.*?)($|\&)", "i"))[1];
0
solved Get query string with JQuery, in a single line? [closed]
Us regular expression to search key and then it corresponding value. jsfiddle
var value = location.search.match(new RegExp(key + "=(.*?)($|\&)", "i"))[1];
0
solved Get query string with JQuery, in a single line? [closed]