title: How would I check too see if "Checkbox" is checked,if so show element?
body: <pre><code>&lt;script&gt;
  function validate(chk){
  if (chk.checked == 1)
  document.getElementById('Texttoshow').style.display="block";
  else
   alert("You didn't check it! Let me check it for you.")
   chk.checked = 1;
   }
  &lt;/script&gt;
  
  &lt;input type="text" value="hey" style="display:none"&gt;&lt;input oncheck="validate(this.id)" type="check"&gt;
  </code></pre>
  
  <p>output:     document.getElementById('Texttoshow') Is Null</p>
  
  <blockquote>
  <pre><code>This code will check if Checkbox is
  checked and if so, it will show the
  CSS Hidden Textbox. How do I make it
  so it will Do so in that manner?
  </code></pre>
  </blockquote>