title: jQuery equivalent to CoffeeScript example given
body: <p>How can I write this CoffeeScript in jQuery?  What am I doing wrong?</p>
  
  <pre><code>$ -&gt;
      $('.shop .item &gt; img').click -&gt;
          $(this).parent().find(':submit').click()
  </code></pre>
  
  <p>This is my attempt to convert the CoffeeScript to jQuery</p>
  
  <pre><code>$(document).ready(function () {
      $(".shop .item &gt; img").click(function(){
          $(this).parent().find(":submit").click()
      });
  });
  </code></pre>