title: Trying to change properties of another element within .click() function
body: <p>I want to change the text color of an element when I click a button using jQuery. This code is not working, please help!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("p").click(function() {
      $(this).hide();
    });
    $("button").click(function() {
      $("#colorChange").style.color = "blue";
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;p id="colorChange"&gt;I should(?) change color when you click mr. button&lt;/p&gt;
  &lt;button&gt;clickme&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>