title: Jquery - How to find an element using class and attribute
body: <p>I am trying to figure out the most efficient way to find my element. Following i smy structure:</p>
  
  <pre><code>&lt;div class="a" customattrib="2"&gt;
  </code></pre>
  
  <p>in order to find this element can I do something like :</p>
  
  <pre><code>$("div.a [customattrib='2']")
  </code></pre>
  
  <p>This does not seem to work, is there another way to do this?</p>
  
  <p>Without the class I am able to get the value but I do not think this is efficient enough for my structure:</p>
  
  <pre><code>$("div [customattrib='2']")
  </code></pre>