title: $(this).css not changing css values
body: <p>I have this code</p>
  
  <pre><code>$('#downvotebutton').click(function() {
      $(this).css('background-color', 'red !important');
      console.log('foo');
      //more
  </code></pre>
  
  <p>When downvotebutton is clicked, 'foo' is returned to the console but the background-color doesn't change. jQuery is linked to and works elsewhere in the page. what could possibly be the cause?</p>