jQuery selector with context passing
<p>I am working on a jQuery tutorial and there's something that I don't quite understand why. Below is the section that I cut out of the tutorial. The sentence in bold is the part that I don't understand and would like some expert to explain it to me. Much appreciated!</p>

<p>"A very common problem encountered when loading content by Ajax is this: When adding event handlers to your document that should also apply to the loaded content, you have to apply these handlers after the content is loaded. To prevent code duplication, you can delegate to a function. Example:</p>

<pre><code> function addClickHandlers() {
   $("a.remote", this).click(function() {
     $("#target").load(this.href, addClickHandlers);
   });
 }
</code></pre>

<p>$(document).ready(addClickHandlers);
Now addClickHandlers is called once when the DOM is ready and then everytime when a user clicked a link with the class remote and the content has finished loading.</p>

<p>Note the $("a.remote", this) query, this is passed as a context: For the document ready event, this refers to the document, and it therefore searches the entire document for anchors with class remote. <strong>When addClickHandlers is used as a callback for load(), this refers to a different element: In the example, the element with id target.</strong> This prevents that the click event is applied again and again to the same links, causing a crash eventually."</p>
