title: Can I create a selector with multiple elements using Jquery closest()
body: <p>I have a listener for click events from which I need to exclude some elements.</p>
  
  <p>Right now my list is growing, so I'm looking for a better way to "bundle" multiple elements in a selector.</p>
  
  <p>This is what I have: </p>
  
  <pre><code>$(document).on('click tap', function(event) {               
      if ($(event.target).closest('div:jqmData(panel="popover")').length &gt; 0 ||
          $(event.target).closest('div.pop_menuBox').length &gt; 0 ||
          $(event.target).closest('.toggle_popover').length &gt; 0 ) ||
          $(event.target).closest('.ui-selectmenu').length &gt; 0 {
            return; 
      }
      // do stuff
  });
  </code></pre>
  
  <p>Is there a better way to exclude these elements?</p>
  
  <p>Thanks for help!</p>