I am making people check a NDA checkbox before they can click the “go to cart button” but it is not popping up.
Here is what I have.
JS
<script type="text/javascript">
jQuery(document).ready(function(){
setformfieldsize(jQuery('#Order0_NDAAgreement'), 2, '')
})
</script><script type="text/javascript">
jQuery(window).load(function(){
//jQuery('a.continueButton:first').unbind('click');
jQuery("a.continueButton:first").click(function(event){
var hollaback = jQuery(this).attr('href').replace(/javascript:/g, '');
event.preventDefault();
if (jQuery("#Order0_NDAAgreement:checked").val() == null){
alert("Please agree to the terms of the Non-Disclosure Agreement.");
jQuery("#Order0_NDAAgreement").focus();
return false;
} else {
eval(hollaback);
return true;
}
});
});
</script>
HTML
<div style="width:325px; margin:0 auto; z-index: 10; position:relative; margin-top:-110px">
<input id="Order0_NDAAgreement" type="checkbox" name="Order0_NDAAgreement" onsubmit="return Validate()" required="1"/><label for="Order0_NDAAgreement"><span style="margin-left:10px; font-size:12px; color:#5f6062;">I agree to the terms of the <a class="fancybox" href="https://www.mywebsite.com/nda.php" target="_blank">Non-Disclosure Agreement</a></span></label>
</div>
CSS for button
.continueButton, .cartButton, .codeButton {
display: inline-block;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font-weight: bold;
font-size: 14px;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
box-shadow: 0 1px 2px rgba(0,0,0,.2);
border: solid 1px #666;
background: #444;
background: -webkit-gradient(linear, left top, left bottom, from(#777777), to(#444444));
background: -moz-linear-gradient(top, #777777, #444444);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#777777', endColorstr='#444444');
}
I cannot get it to work for the life of me. (It works for the top button but none else, I just need it working for the checkout button)
Now on my page it does throw a pop-up saying they must put in their information, but I want the NDA box to pop up before they ask for that.
Any help would be appreciated.
Site in question is
https://yourreferral.infusionsoft.com/app/manageCart/showManageOrder