title: Enabling PayPal buttons with a checkbox
body: <p>Im kinda of a nooobie when it comes to coding, but here it goes, hope someone can help. I was asked to set up a payment page using two paypal buttons. When you first arrive at the page the buttons need to be disabled, until they check the checkbox, that basically means they have accepted the ToS, and there for can continue on to make the payment. I have tried everything I could find online but nothing seems to work for me. </p>
  
  <p>This is my html code...</p>
  
  <pre><code>    &lt;!--CheckBox Validation--&gt;
  
      &lt;input id="one" type="checkbox" /&gt; I have read and agree to the Terms &amp;amp; Conditions
  
  
      &lt;!--PayPal Button--&gt;
  
      &lt;center&gt;
      &lt;table&gt;
  &lt;tr&gt;
      &lt;td&gt;
      &lt;form action="https://www.paypal.com/cgi-bin/webscr" onsubmit="return confSubmit();"              method="post" target="_top"&gt;
      &lt;input type="hidden" name="cmd" value="_s-xclick"&gt;
      &lt;input type="hidden" name="hosted_button_id" value="2RU2ND26N2564"&gt;
      &lt;input type="image" src="http://graphicasylum.com/images/Boton_100_Chico.png" border="0" name="submit" alt="PayPal, la forma más segura y rápida de pagar en línea."&gt;
      &lt;img alt="" border="0" src="https://www.paypalobjects.com/es_XC/i/scr/pixel.gif" width="1" height="1"&gt;
      &lt;/form&gt;
      &lt;/td&gt;
  
      &lt;td&gt;
  &lt;a class="submit disabled"
      &lt;form action="https://www.paypal.com/cgi-bin/webscr" onsubmit="return confSubmit();" method="post" target="_top"&gt;
      &lt;input type="hidden" name="cmd" value="_s-xclick"&gt;
      &lt;input type="hidden" name="hosted_button_id" value="SAK96Y5CBTFUL"&gt;
      &lt;input type="image" src="http://graphicasylum.com/images/Boton_50_Chico.png" border="0" name="submit" alt="PayPal, la forma más segura y rápida de pagar en línea."&gt;
      &lt;img alt="" border="0" src="https://www.paypalobjects.com/es_XC/i/scr/pixel.gif" width="1" height="1"&gt;&lt;/a&gt;
      &lt;/form&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/center&gt;
  </code></pre>
  
  <hr>
  
  <p>And this is my js code.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;// &lt;![CDATA[
      function confSubmit() {
      if(!document.getElementById("accept").checked) {
      alert("Please read and accept the Terms and Conditions in order to continue.");
      return false;
      }
      } // ]]&gt;&lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>If I'm completely lost (witch I'm pretty sure I am) I'm willing to go another direction to make this work!
  Thanks in advance for any help. :) Also I had to put my 2 paypal buttons in tables because that was the only way I knew how to set them side by side and centered on the webpage.</p>