title: trigger click an element with a specific class and attribute
body: <p>I have few link elements related to a certain class and assigned row attributes to it and I'm trying to trigger click event based on the attribute value.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a class="manage_edit_nb" nb_id="1"&gt;&lt;/a&gt; | &lt;a class="manage_del_nb" nb_id="1"&gt;&lt;/a&gt;
  &lt;a class="manage_edit_nb" nb_id="2"&gt;&lt;/a&gt; | &lt;a class="manage_del_nb" nb_id="2"&gt;&lt;/a&gt;
  &lt;a class="manage_edit_nb" nb_id="3"&gt;&lt;/a&gt; | &lt;a class="manage_del_nb" nb_id="3"&gt;&lt;/a&gt;...</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is it possible to trigger click or any event for a certain attribute value for a certain class?</p>
  
  <p>If I try something similar to </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('a[nb_id = "1"]').trigger('click');</code></pre>
  </div>
  </div>
  </p>
  
  <p>it triggers click event for all elements irrespective of class but I failed to figure out how to put class reference in there! </p>