title: Can't pass show() method in event handler (jquery)
body: <p>I need to show a block when the button is clicked, so I do this : </p>
  
  <pre><code>var container = $('#container');
  
  $('button').on('click', container.show);
  </code></pre>
  
  <p>and it doesn't work, however, when I write this, it works : </p>
  
  <pre><code>var container = $('#container');
  
  $('button').on('click', function() {
      container.show()
  });
  </code></pre>
  
  <p>Can somebody explain me why the first version doesn't work ? Is there a way to use show method without writing an anonymous function in the event handler  ? </p>