title: What does the dollar sign mean inside an attribute selector in jQuery?
body: <p>There is this jQuery which seems to look for all elements with <code>id="scuba"</code>, but then it uses attr() to pull the id out? Could "scuba" be part of the id and attr pulls the entire id out? I've never seen the $ inside an attribute selector, just outside like the example below.</p>
  
  <pre><code>$('*[id$=scuba]').attr('id')
  </code></pre>
  
  <p>So my questions are:</p>
  
  <ol>
  <li>What does the <code>$</code> or <code>$=</code> do in this example</li>
  <li>What does this code do?</li>
  </ol>