How can I do OR in jquery for an element selector?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10515888/combine-two-selectors-with-one-jquery-object">Combine two selectors with one jQuery object</a>  </p>
</blockquote>



<p>I have the following jquery code:</p>

<pre><code>  $("#try").click(function(){
  ...
</code></pre>

<p>If I click on <code>#try</code>, the browser executes the function. Suppose I want to add another element, <code>#try2</code>, that will execute the same function. How would I add an <code>or</code> to the above code? I've tried using,</p>

<pre><code>  $("#try" or "#try2").click(function(){
  ...
</code></pre>

<p>but it doesn't work.</p>
