title: jQuery Attribute Selectors OR Operation
body: <p>Here is my <code>html</code>:</p>
  
  <pre><code>&lt;div id="l"&gt;l&lt;/div&gt;
  &lt;div id="a"&gt;a&lt;/div&gt;
  &lt;div id="i"&gt;i&lt;/div&gt;
  </code></pre>
  
  <p>How to change the color of only the <code>l</code> and <code>a</code> attributed elements? I searched for a selector with OR, something like this:</p>
  
  <pre><code>$(function(){
      $('div[id=l,a]').css('color','red');
  });
  </code></pre>
  
  <p>It's not working, is there something like that in jQuery?</p>
  
  <p><strong>EDIT</strong>
  Thank you guys it's working now:</p>
  
  <pre><code>$('[id=l], [id=a]').css('color', 'red');
  </code></pre>
  
  <p>But what if I want to search for those IDs inside a <code>&lt;div&gt;</code> like <code>$('[id=l], [id=a]','div')</code>. This doesn't work, how should I do it?</p>