title: Selecting Number of Id's using loop in Javascript
body: <p>I have 5 different id's as below:</p>
  
  <pre><code>&lt;div id ="box1"&gt;&lt;/div&gt;
  &lt;div id ="box2"&gt;&lt;/div&gt;
  &lt;div id ="box3"&gt;&lt;/div&gt;
  &lt;div id ="box4"&gt;&lt;/div&gt;
  &lt;div id ="box5"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is there any way to call each id using for loop in javascript?</p>
  
  <pre><code>for(int i=0; i&lt;5; i++){
  //i want to call those ids each at a time. At first box1, then box2...
  }
  </code></pre>