title: Understanding jQuery Attribute Selector which uses #
body: <p>Could someone tell me what below jQuery selector will grab (I didn't write it but I need to understand it)...</p>
  
  <pre><code>var $cat = $('a[href="#cat"]');
  </code></pre>
  
  <p>Is it all the anchor tags which have 'cat' in the value of their href attribute?</p>
  
  <p>Also does using the '$' in the variable name have any significance or effect? Is it bad practice?</p>