title: jQuery if url hash, click event/activate javascript
body: <p>So from the home page, i have a link that goes to a products listing page.
  The product page has expand/collapse divs.</p>
  
  <p>I need the appropriate div to expand depending on what the url# is.</p>
  
  <p>So the link on the homepage is </p>
  
  <pre><code>&lt;a href="/out-products.php#healthysnacks"&gt;healthy snacks&lt;/a&gt;
  </code></pre>
  
  <p>when i click the link above, i am trying to activate this, on the product page:</p>
  
  <pre><code>&lt;a href="javascript:ReverseDisplay('products4')" id="healthysnacks"&gt; Healthy Snacks&lt;/a&gt;
  </code></pre>
  
  <p>I've tried some of the other codes that i found that trigger click by checking for hash tag and none of them were working properly, i think it's because of the ReverseDisplay js.
  Please any insight would help.</p>
  
  <p>thanks</p>