title: hasClass() is not a function Jquery
body: <p><strong>EDIT</strong></p>
  
  <p>I had character blindness with this one and it was missing a dollar. Despite looking at the code in detail and running it through a number of online lint programs I didn't pick up on the missing dollar.</p>
  
  <p>It was just one of those things and I'm sorry. </p>
  
  <p><strong>/EDIT</strong></p>
  
  <p>I've looked on stack overflow and the similar problems I've found appear to be when calling against an array, but I'm calling against an Id.</p>
  
  <p>When I run the following I get:</p>
  
  <pre><code>Uncaught TypeError: "#consoleLog".hasClass is not a function
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>if(msg.data.match(/^LCERROR/) || msg.data.match(/^ERROR/)) {
    if (!('#consoleLog').hasClass('stop')){
       setInterval(function() {
         $('#consoleLog').animate( { backgroundColor : "#aa0000" }, 1000)
         .animate( { backgroundColor : "black" }, 1000);
        }, 100);
     };
   };
  </code></pre>
  
  <p>With my limited understanding of Jquery and Javascript I thought an Id was a valid DOM to call hasClass() with. It even has examples of it here: <a href="https://api.jquery.com/hasclass/" rel="nofollow">https://api.jquery.com/hasclass/</a></p>
  
  <p>Any idea what might be happening here?</p>
  
  <p>Purpose of the code is:
  If the socket message contains ERROR or LCERROR, flash this div between black and red unless the stop class has been called.</p>