title: How do i change one of the classes in an element with Javascript
body: <p>If i have the library materialize and an element "h1", how do i change only its background color "black" to "white" using javascript? For example using a button.</p>
  
  <pre><code>&lt;h1 class="black red-text"&gt;Test&lt;/h1&gt;
  </code></pre>