title: jquery trigger click if url contains parameter
body: <p>hi i'm trying to automatically click the 9th child of li tag when the URL contains "ddg" parameter. I've tried this one but using jQuery i can't get it working. the code is within the document.ready function. thanks!</p>
  
  <pre><code>if(window.location.href.indexOf("ddg") &gt; -1) {
      setTimeout(function() {
          $("#nav-categories li:nth-child(9)").trigger("click");
      },1000);
  }
  </code></pre>