title: How can I simulate a click event on an anchor tag without actually calling click or refreshing?
body: <p>I am using meteor with iron router and meteors standard blaze tempting.</p>
  
  <p>I have an ul set up so that when one of my li items is clicked its containing anchor tag is clicked on using the function click. The only problem is that when that a is clicked with the function it counts as another click on my li and my menu isn't toggling right.</p>
  
  <p>I am wondering if there is a way to call the pathFor without actually calling a click function.</p>
  
  <p>Thanks for any help!</p>
  
  <p>Update, here is the code its working along with a pretty standard drop down nav. I am not sure if I can catch that event the same as a jquery event since I think it is the standard browser click event working on the [0], but I think I should be able to make a function that matches href to route and call Router.go</p>
  
  <pre><code>Template.nav.rendered = () -&gt;
      # set initial page view and take care of refeshes
      currentPageHtlm = getCurrentPage(window.location.pathname)
      $('#currentPage').find('span').html(currentPageHtlm)
  
      $("li").on "click", () -&gt;
          #simulate anchor click and set currentPage session
          $(this).find("a")[0].click()
          Session.set 'pageName', getCurrentPage($(this).find("a").attr("href"))
          currentPageHtlm = Session.get 'pageName'
          $('#currentPage').find('span').html(currentPageHtlm)
  
          # toggle nav and arrow if mobile view
          if $('.smOnly').css('display') != 'none'
              $('#nav').slideToggle('slow')
              $('#dropArrow').toggleClass('fa-caret-square-o-down fa-caret-square-o-up')
  </code></pre>