title: How to use JavaScript's setattribute to affect multiple elements?
body: <p>I have many div with the class <code>publish_0</code> that I would like to change to <code>publish_1</code> on click of a button.</p>
  
  <p>Right now I use this but it only change one item.</p>
  
  <p>How to I apply the setattribute to all item that have the <code>publish_0</code>.</p>
  
  <pre><code>document.querySelector('.publish_0').setAttribute("class", "publish_1");
  </code></pre>