title: How to write with innerHTML on input type text
body: <p>I want to write something in:</p>
  
  <p><code>&lt;input type="text" id="total"&gt;</code> </p>
  
  <p>With </p>
  
  <p><code>document.getElementById('total').innerHTML = 'hi';</code> </p>
  
  <p>But it is not writing anything in text box.<br>
  Even I also tried it with <code>className</code> but still not working.</p>
  
  <p>Is there any solution?</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;  
      &lt;h2&gt;My First JavaScript&lt;/h2&gt;  
      &lt;input type="text" id="total" &gt;
      &lt;script&gt;
          document.getElementById('total').innerHTML = 'hi';
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>