title: Select elements based on two conditions - jQuery
body: <p>Could someone please help me select anchors that respect two conditions. For one condition, I wrote the following line and it works:</p>
  
  <pre><code>$links = $('a[data-one="' + one + '"]');
  </code></pre>
  
  <p>I tried following things:</p>
  
  <pre><code>$links = $('a[data-one="' + one + '", data-two="' + two + '"]');
  
  $links = $('a[data-one="' + one + '"] a[data-two="'+ two+ '"]');
  </code></pre>