title: Hide/ Show div based on URL that loads without page reload
body: <p>I have a website where the menu is such that, the new page/url loads with the  page reloading.</p>
  
  <p>I am trying to hide a div using the following code- this works when the page reloads but does not work when the url changes without page reload.</p>
  
  <pre><code>$(function(){
      if (window.location.hash == "#home") {
          $('.axiosnext-arrow').hide();
      } else {
          $('.axiosnext-arrow').show();
      }
  });
  </code></pre>