title: Trigger a click with jQuery using link_to of rails 4
body: <p>I'm working on a Rails 4 app. I need to trigger a click in a link using javascript (or jQuery). I have this in my view:</p>
  
  <pre><code>&lt;%= link_to t('.fixture'), fixture_manager_tournament_path(format: :js), remote: true, id: 'fixture-link' %&gt;
  </code></pre>
  
  <p>this generates:</p>
  
  <pre><code>&lt;a id="fixture-link" data-remote="true" href="/manager/tournaments/1/fixture.js"&gt;Fixture&lt;/a&gt;
  </code></pre>
  
  <p>Notice the <code>remote: true</code>.
  This is working fine when I click the link, but I need to simulate the click through js. 
  I've tried with:</p>
  
  <pre><code>$('#fixture-link').click();
  $('#fixture-link').trigger('click');
  $('#fixture-link').trigger('click.rails');
  </code></pre>
  
  <p>But none of them are working. 
  Thanks in advance!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>@RustComet Comet It should replace the HTML of one of my divs... </p>
  
  <p>@RichPeck I have a view too big. Then, to avoid long rendering time, I'm trying to load partials through JS. I've used this info: <a href="https://stackoverflow.com/a/15174908/3893506">https://stackoverflow.com/a/15174908/3893506</a> to achieve that. </p>
  
  <p>My view have various tabs and all of they are loaded through JS (except one). Then I added an additional parameter to the route in order to access directly to the desired tab. So I can go to <code>/tournament?active=fixture</code> and see the fixture. </p>
  
  <p>The issue is, the tab is active but the content isn't here. (Of course, the ajax request and callbacks aren't fired until I clic on the link). That is why I'm trying to simulate a clic on that link and load the corresponding tab. </p>