I am trying to check if a search has been ran so that i can react to this with JS and hide and show different divs depending on that on page load.
How do i get information from the URL with JavaScript and Jquery?
www.localhost.com/search?name=&category=
I want to get the information of the name and category then if they are not null i want to show this div
<div class="Search-results"></div>
and hide this one
<div class="Search-params"></div>
Is this even possible?