title: Linking HTML Checkbox to Javascript
body: <p>How could I link a checkbox from HTML into java script ? I have built the checkbox in HMTL like so : 
   <code>&lt;label&gt;&lt;b&gt;Response Needed ?&lt;/b&gt;&lt;/label&gt;
      &lt;input id="Check" type="checkbox" &gt;</code></p>
  
  <p>When I hit the submit button I need the value to be T (true) or F (false) if its checked or not..</p>
  
  <p>I usually use <code>getElementById("")</code> to link things into Javascirpt but cant get this to work!</p>
  
  <p>EDIT: Here is my full Document so you can see how its works : </p>
  
  <pre><code>`
  
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head lang="en"&gt;
  &lt;meta charset="UTF-8"&gt; 
  
   &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form id="OTA"&gt;
  
      &lt;label&gt;&lt;b&gt;IMEI:&lt;/b&gt;&lt;/label&gt;
  &lt;input type="text" name="ID" id="IMEI" maxlength="15"&gt; 
  
      &lt;label&gt;&lt;b&gt;AT Command:&lt;/b&gt;&lt;/label&gt;
      &lt;input id="Command" type="text"&gt;
  
      &lt;label&gt;&lt;b&gt;Response Needed ?&lt;/b&gt;&lt;/label&gt;
      &lt;input id="Check" type="checkbox" &gt;
  
  
  &lt;/form&gt;
      &lt;input type="submit" value="Submit" onclick="showInput();"&gt;&lt;br /&gt;
      &lt;p&gt;&lt;span id='display'&gt;&lt;/span&gt; &lt;/p&gt; 
  
      &lt;script language="JavaScript"&gt;
  function showInput() {
  
      var message_entered = "&gt;RSP=" + document.getElementById("Check").checked + ";ID=" +  document.getElementById("IMEI").value + ";" + document.getElementById("Command").value + "&lt;";
  
      document.getElementById('display').innerHTML = message_entered;
  
  }
      &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to change the values of the checkbox to T and F when checked or not.
  Cheers</p>