title: using jQuery .each() method on single-element id-selector
body: <p>Explaining <a href="http://blog.nemikor.com/2009/04/18/loading-a-page-into-a-dialog/" rel="noreferrer">jQuery dialogs</a> in the Nemikor Blog, Scott González uses the .each() method on an id selector:</p>
  
  <pre><code>$('#page-help').each(function() {
    var dialog = $('&lt;div&gt;&lt;/div&gt;')
      .load($(this).attr('href'))
      .dialog( ... );
    $(this).click(function() { ... });
  });
  </code></pre>
  
  <p>Since an id selector can only return a single element, what is the purpose of using the .each() method? (which is normally for iterating over matched elements).</p>
  
  <p>Is it just that there is no simpler way to execute a function for the 'page-help' element which provides access to $(this)?</p>