title: Internet explorer debugger javascript error on page load
body: <p>Every time I run the page in i.e10 the JavaScript debugger window comes up and displays undefined error of 'style'. I was trying the JavaScript way instead of jQuery.</p>
  
  <p>It is proving hassle...</p>
  
  <pre><code>var displayPackets = document.getElementById('pnl_emailFtp');
  // set style to 'display:none;'
  displayPackets.style.display = "none";
  
  var smlPkt = document.getElementById('small-packet');
  var lrgPkt = document.getElementById('large-packet');
  
  // Shows the 'panel' where the 'small/Large' pkts are.
  var radButton = document.getElementsByName('secureData');
  // Check radio button has been clicked and show 
  // Small/Large packet boxes.
  if (radButton.checked = true) {
      displayPackets.style.display = "block";
  } else {
      displayPackets.style.display = "none";
  }
  </code></pre>
  
  <p>Am I doing something wrong? </p>