title: JQuery select button element by attribute
body: <p>My HTML:</p>
  
  <blockquote>
  <pre><code>&lt;button class="btn btn-primary cl-width" ng-click="search()"&gt;
    &lt;i class="icon-search icon-white"&gt;&lt;/i&gt;&amp;nbsp;Search&lt;/button&gt;
  &lt;button class="btn cl-width" ng-click="criteriaModel.reset()"&gt;
    &lt;i class="icon&gt; iconfa-undo"&gt;&lt;/i&gt;&amp;nbsp;Reset&lt;/button&gt;
  </code></pre>
  </blockquote>
  
  <p>My jQuery:</p>
  
  <pre><code>$("button[ng-click:'search()]")
  </code></pre>
  
  <p>It shows an error:</p>
  
  <blockquote>
    <p>Error: Syntax error, unrecognized expression: button
    [ng-click:'search()]</p>
  </blockquote>
  
  <p>Doesn't jQuery support attribute selector for button element?
  I can achieve that by <code>$("button.btn-primary")</code>, but I don't think that is good enough.</p>
  
  <p>How could I select a button element by its attribute?</p>