title: JavaScript enable button when checkbox checked
body: <p>I need to have this button disabled, and when the user checks a checkbox it needs to be enabled its just not working for me at all, the button stays disabled, i know the onclick is calling the script because i placed an alert in the script and it does alert me....</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function goFurther(){
  
  if (document.getElementById("ID").checked == true)
  document.getElementById("Calculate").disabled = false;
  else
  document.getElementById("Calculate").disabled = true;
  }
  &lt;/script&gt;
  
  &lt;style type="text/css"&gt;
  input[disabled]
  {
     color:Gray; text-decoration:none;
  }
  &lt;/style&gt;
  
  
  
  &lt;CFOUTPUT query = "qGetOpenItemsTrans"&gt;
      &lt;TR&gt;
          &lt;TD ALIGN = "CENTER"&gt;
            &lt;input type="checkbox" name = "chkbx" id='#ID#' value="#seq_claim_id#"           onClick="goFurther()" unchecked = 0   &gt;
          &lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#Inventory_Date#&lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#seq_claim_id#&lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#Month_Closed#&lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#Amount_Rcvd_by_FRG#&lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#Commission_Amt#&lt;/TD&gt;
          &lt;TD ALIGN = "CENTER"&gt;#Net_Recovery#&lt;/TD&gt;
      &lt;/TR&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;INPUT TYPE ="Button" NAME = "Calculate" VALUE = "Calculate" onClick = "FormSubmit();"     style="height:35px; width:150px; font-size:medium; font-weight:bold; color:green;" disabled &gt;
  </code></pre>