title: How to use multiple document.getElementById's?
body: <p>I have a problem with html and js. I don't know why I can only use the first document.getElementById that is on top.</p>
  
  <p>JavaScript.js</p>
  
  <pre><code>var one = "sentence"
  document.getElementById("text").innerHTML = one;
  
  var two = "sentence sentence"
  document.getElementById("text_2").innerHTML = two;
  
  var three = "sentence sentence sentence"
  document.getElementById("text_3").innerHTML = three;
  </code></pre>
  
  <p>webpage.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="text"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;script src="test.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When using div id="text_2" or div id="text_3", nothing will come up on the output. Only the document.getElementById that is on top in the js file can be seen on the webpage. So I gues i cannot use multiple getElementById's but I don't know a other way yet. What to do?</p>
  
  <p>Thank you</p>