title: jQuery get by class and attribute
body: <p>Hi I have a select like:</p>
  
  <pre><code>&lt;select id="item_OfficeUserId" class="dropdownauditor" name="item.OfficeUserId" invoicelineid="33"&gt;
  </code></pre>
  
  <p>In jQuery I can get it by its class:</p>
  
  <pre><code>$(".dropdownauditor")
  </code></pre>
  
  <p>Is there a way to get it based on its class and it attribute invoicelineid="33" as well?</p>
  
  <p>There will be more than one with <code>class="dropdownauditor"</code>. I want to get the selected item of the particular <code>select</code>. I was using:</p>
  
  <pre><code>$(".dropdownauditor").change(function () {
      $(".dropdownauditor option:selected").each(function () {
      ...
      }
  }
  </code></pre>
  
  <p>But this is running through the second part twice. ie. It tis then finding the selected for every <code>select</code> with <code>class="dropdownauditor"</code> Is is possible to only find only one with <code>invoicelineid="33"</code>?</p>