title: How to call a "link_to" in Javascript on a onclick event
body: <p>I'm trying to get the rails-'link_to' funcionality in my Javascript (jQuery). In my Javascript I'm waiting for a onclick event and fetch some data via ajax. Afterwards I would like to call a</p>
  
  <pre><code>= link_to "Show", @mymodel, :remote =&gt; true, :id =&gt; "#{some.id}", :format =&gt; :js
  </code></pre>
  
  <p>But I cant figure out how to put it in JS.
  Thanks a ton for your help!</p>