title: how to see multiple elements styling change with a loop?
body: <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>for(i = 0; i &lt;= 5; i++){
    $('div').css({'color': 'black'})
    $('#' + i).css({'color': 'red'})
  }</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;div id='1'&gt;1&lt;/div&gt;
  &lt;div id='2'&gt;2&lt;/div&gt;
  &lt;div id='3'&gt;3&lt;/div&gt;
  &lt;div id='4'&gt;4&lt;/div&gt;
  &lt;div id='5'&gt;5&lt;/div&gt;
  &lt;div id='6'&gt;6&lt;/div&gt;
  &lt;div id='7'&gt;7&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If I'm using this I only see the last div change color, how can I make the loop so I can see every div change color, see 1 turn red, then 2, then 3 and so on until 5 ?</p>