Posted By

robnilas on 01/21/17


Tagged


Versions (?)

Hiden box - Checkbox


 / Published in: JavaScript
 

  1. <script src="http://blacksheepdesigns.s3.amazonaws.com/js-library/jquery.js" type="text/javascript"></script>
  2. <script type="text/javascript">
  3. jQuery(function($){
  4. jQuery('#offers a').click( function(e){
  5. if (jQuery('div.pre-cart-inactive').length > 0) {
  6. return false;
  7. } else {
  8. return true;
  9. }
  10. });
  11.  
  12. jQuery('#agree_box').click( function(){
  13. if (jQuery(this).is(':checked')) {
  14. jQuery('#offers').removeClass('pre-cart-inactive');
  15.  
  16. jQuery('#offer_6DeadlyMistakes').attr('href', "http://www.mortgagemarketingcoach.com/ARSOrderConfirmationStep1of2.html");
  17.  
  18. } else {
  19. jQuery('#offers').addClass('pre-cart-inactive');
  20.  
  21. jQuery('#offer_6DeadlyMistakes').attr('href', '#');
  22.  
  23. }
  24. return true;
  25. });
  26. });
  27. </script>

Report this snippet  

You need to login to post a comment.