SyntaxFix
Write A Post
Hire A Developer
Questions
if the url is http://localhost/madukaonline/shop.php?shop=79
http://localhost/madukaonline/shop.php?shop=79
console.log(location.search); will bring ?shop=79
console.log(location.search);
?shop=79
so the simplest way is to use location.search
you can lookup for more info here and here