title: enable/diable submit with checkbox on page load
body: <p>So I am trying to enable or disable a submit button when a checkbox is check or unchecked respectively.  <strong>The checkbox by default is unchecked <em>on Page Load</em>, however the Submit button is enabled.</strong>  Here is my code:</p>
  
  <p><strong>The script:</strong></p>
  
  <pre><code>&lt;script&gt;
  
  EnableSubmit = function(val)
   {
  var sbmt = document.getElementById("submit");
  
  if (val.checked == true)
  {
      sbmt.disabled = false;
  }
  else
  {
      sbmt.disabled = true;
  }
  }  
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>The HMTL:</strong></p>
  
  <pre><code>&lt;input name="agree" type="checkbox" class="equipmentTroubleForm"  onClick="EnableSubmit(this)" value="Accept"&gt;
  </code></pre>