title: document.getElementById().value and document.getElementById().checked not working for IE
body: <p>I tried to assign a new value into the hidden input and checkbox of an input form. It's working fine in Firefox but not in IE (I'm using IE 7). Does anyone know what is wrong with my code?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="hidden" id="msg" name="msg" value="" style="display:none"/&gt;
  &lt;input type="checkbox" name="sp" value="100" id="sp_100"&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>var Msg="abc";
  document.getElementById('msg').value = Msg;
  document.getElementById('sp_100').checked = true;
  </code></pre>