title: Select elements with an attribute with cheerio
body: <p>What is the most efficient way to select all dom elements that have a certain attribute.</p>
  
  <pre><code>&lt;input name="mode"&gt;
  </code></pre>
  
  <p>With plain javascript I would use : <code>document.querySelectorAll("[name='mode']")</code>
  or <code>document.querySelectorAll("[name]")</code> if I don't care about the attribute value.</p>