title: comparing jQuery objects
body: <p>I'm using a selector to get a group of objects (0 or more):</p>
  
  <pre><code>var $openMenus = $Triggers.filter(".trigger-hover");
  </code></pre>
  
  <p>Then I have an event attached to an item that may or may not be in the object above. Within that event where I want to compare the item that triggers the event to c</p>
  
  <pre><code>$([selector])
      .focus(function(){
          var $thisMenu = $(this);
          $openMenus.each(function(){
              if ($(this) != $thisMenu ){ 
                  [do something]
              }
          }) 
      })
  </code></pre>
  
  <p>This will not work. While multiple jQuery objects may REFER to the same DOM object, they are actually separate jQuery objects and there for will never compare true.</p>
  
  <p>Given that, what would be the way to handle this? How does one have two jQuery objects and compare them to see if one jQuery object refers to the same DOM element as another?</p>
  
  <p>I could give each item I'm trying to select an ID, but am wondering if there is another way to go about it without having to add more to the HTML.</p>