title: How do I pass the this context to a function?
body: <p>I thought this would be something I could easily google, but maybe I'm not asking the right question...</p>
  
  <p>How do I set whatever "this" refers to in a given javascript function?</p>
  
  <p>for example, like with most of jQuery's functions such as:  </p>
  
  <pre><code>$(selector).each(function() {
     //$(this) gives me access to whatever selector we're on
  });
  </code></pre>
  
  <p>How do I write/call my own standalone functions that have an appropriate "this" reference when called?  I use jQuery, so if there's a jQuery-specific way of doing it, that'd be ideal.</p>