title: I want to assign id into var but nothing display
body: <p>Firstly. i am a beginner. 
  I want to display total that showed in read only text box into the proper looking box. This is my coding.</p>
  
  <p>This is the text box and it shows value succesfully.</p>
  
  <pre><code>&lt;input  name="total" value="" id= "TOTAL" readonly/&gt;
  </code></pre>
  
  <p>Now i want to display it here but it won't</p>
  
  <pre><code>var displayTotal = document.getElementById('TOTAL').value;
  
  divobj.innerHTML = "Your Total Price is RM"+displayTotal ;
  </code></pre>
  
  <p>Please help me and thank you!!</p>